summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-15 17:21:25 +0100
committerGitHub <noreply@github.com>2022-11-15 17:21:25 +0100
commit7aa8e9c0351eabe822916394942c576381a13c6c (patch)
tree189b0fe0ace7d49aa706be04755140a68f09b47b /cli/tests
parentc1cb4d6a8da52e69c10c5f4aabb79292d537347d (diff)
test: don't use remote std for tests (#16631)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/coverage_tests.rs3
-rw-r--r--cli/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts2
-rw-r--r--cli/tests/testdata/coverage/no_transpiled_lines/index.ts2
3 files changed, 5 insertions, 2 deletions
diff --git a/cli/tests/integration/coverage_tests.rs b/cli/tests/integration/coverage_tests.rs
index 251577c4b..1ee3af371 100644
--- a/cli/tests/integration/coverage_tests.rs
+++ b/cli/tests/integration/coverage_tests.rs
@@ -211,6 +211,7 @@ fn no_snaps_included(test_name: &str, extension: &str) {
.current_dir(util::testdata_path())
.arg("coverage")
.arg("--unstable")
+ .arg("--include=no_snaps_included.ts")
.arg(format!("{}/", tempdir.to_str().unwrap()))
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
@@ -260,6 +261,7 @@ fn no_transpiled_lines() {
let output = util::deno_cmd_with_deno_dir(&deno_dir)
.current_dir(util::testdata_path())
.arg("coverage")
+ .arg("--include=no_transpiled_lines/index.ts")
.arg(format!("{}/", tempdir.to_str().unwrap()))
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
@@ -287,6 +289,7 @@ fn no_transpiled_lines() {
.current_dir(util::testdata_path())
.arg("coverage")
.arg("--lcov")
+ .arg("--include=no_transpiled_lines/index.ts")
.arg(format!("{}/", tempdir.to_str().unwrap()))
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::inherit())
diff --git a/cli/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts b/cli/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts
index 6dd92c235..e1f99ed9b 100644
--- a/cli/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts
+++ b/cli/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts
@@ -1,4 +1,4 @@
-import { assertSnapshot } from "https://deno.land/std@0.136.0/testing/snapshot.ts";
+import { assertSnapshot } from "../../../../../test_util/std/testing/snapshot.ts";
import { truth } from "./no_snaps_included.ts";
Deno.test("the truth", () => {
diff --git a/cli/tests/testdata/coverage/no_transpiled_lines/index.ts b/cli/tests/testdata/coverage/no_transpiled_lines/index.ts
index d22b1673d..df25283cd 100644
--- a/cli/tests/testdata/coverage/no_transpiled_lines/index.ts
+++ b/cli/tests/testdata/coverage/no_transpiled_lines/index.ts
@@ -1,5 +1,5 @@
export {
assertStrictEquals,
-} from "https://deno.land/std@0.139.0/testing/asserts.ts";
+} from "../../../../../test_util/std/testing/asserts.ts";
export * from "./interface.ts";