Skip to content

Commit 6130e02

Browse files
committed
fix(mimic): Re-export RunMode
1 parent 1579c1f commit 6130e02

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/libtest2-mimic/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ json = ["libtest2-harness/json"]
3030
threads = ["libtest2-harness/threads"]
3131

3232
[dependencies]
33+
libtest-json = { version = "0.0.1", path = "../libtest-json" }
3334
libtest2-harness = { version = "0.0.1", path = "../libtest2-harness" }
3435

3536
[dev-dependencies]

crates/libtest2-mimic/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
pub use libtest2_harness::RunError;
2828
pub use libtest2_harness::RunResult;
29+
pub use libtest_json::RunMode;
2930

3031
pub struct Harness {
3132
harness: libtest2_harness::Harness,
@@ -110,7 +111,7 @@ impl<'t> TestContext<'t> {
110111
self.inner.ignore_for(reason)
111112
}
112113

113-
pub fn current_mode(&self) -> libtest2_harness::RunMode {
114+
pub fn current_mode(&self) -> RunMode {
114115
self.inner.current_mode()
115116
}
116117
}

0 commit comments

Comments
 (0)