summaryrefslogtreecommitdiff
path: root/cli/tests/integration/test_tests.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-07-26 20:05:44 +0800
committerGitHub <noreply@github.com>2021-07-26 14:05:44 +0200
commitb2fcd3d01458072265e5ce9bfe9e8ed34fe4c00b (patch)
tree5e43726d056f35bd9e819f2cb0028e3c5fa5c570 /cli/tests/integration/test_tests.rs
parent9e89fe2fe8061378d2e0d1371f17c5ccc4a351f3 (diff)
fix(cli): side-load test modules (#11515)
This fixes a regression introduced in 1.9 where test modules became main modules by side loading them in a generated module.
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r--cli/tests/integration/test_tests.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs
index 64ad29e22..1f9df3fd5 100644
--- a/cli/tests/integration/test_tests.rs
+++ b/cli/tests/integration/test_tests.rs
@@ -19,6 +19,12 @@ fn no_color() {
assert!(out.contains("test result: FAILED. 1 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out"));
}
+itest!(meta {
+ args: "test test/meta.ts",
+ exit_code: 0,
+ output: "test/meta.out",
+});
+
itest!(pass {
args: "test test/pass.ts",
exit_code: 0,