mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
test: don't use remote std for tests (#16631)
This commit is contained in:
parent
c1cb4d6a8d
commit
7aa8e9c035
3 changed files with 5 additions and 2 deletions
|
@ -211,6 +211,7 @@ fn no_snaps_included(test_name: &str, extension: &str) {
|
||||||
.current_dir(util::testdata_path())
|
.current_dir(util::testdata_path())
|
||||||
.arg("coverage")
|
.arg("coverage")
|
||||||
.arg("--unstable")
|
.arg("--unstable")
|
||||||
|
.arg("--include=no_snaps_included.ts")
|
||||||
.arg(format!("{}/", tempdir.to_str().unwrap()))
|
.arg(format!("{}/", tempdir.to_str().unwrap()))
|
||||||
.stdout(std::process::Stdio::piped())
|
.stdout(std::process::Stdio::piped())
|
||||||
.stderr(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)
|
let output = util::deno_cmd_with_deno_dir(&deno_dir)
|
||||||
.current_dir(util::testdata_path())
|
.current_dir(util::testdata_path())
|
||||||
.arg("coverage")
|
.arg("coverage")
|
||||||
|
.arg("--include=no_transpiled_lines/index.ts")
|
||||||
.arg(format!("{}/", tempdir.to_str().unwrap()))
|
.arg(format!("{}/", tempdir.to_str().unwrap()))
|
||||||
.stdout(std::process::Stdio::piped())
|
.stdout(std::process::Stdio::piped())
|
||||||
.stderr(std::process::Stdio::piped())
|
.stderr(std::process::Stdio::piped())
|
||||||
|
@ -287,6 +289,7 @@ fn no_transpiled_lines() {
|
||||||
.current_dir(util::testdata_path())
|
.current_dir(util::testdata_path())
|
||||||
.arg("coverage")
|
.arg("coverage")
|
||||||
.arg("--lcov")
|
.arg("--lcov")
|
||||||
|
.arg("--include=no_transpiled_lines/index.ts")
|
||||||
.arg(format!("{}/", tempdir.to_str().unwrap()))
|
.arg(format!("{}/", tempdir.to_str().unwrap()))
|
||||||
.stdout(std::process::Stdio::piped())
|
.stdout(std::process::Stdio::piped())
|
||||||
.stderr(std::process::Stdio::inherit())
|
.stderr(std::process::Stdio::inherit())
|
||||||
|
|
|
@ -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";
|
import { truth } from "./no_snaps_included.ts";
|
||||||
|
|
||||||
Deno.test("the truth", () => {
|
Deno.test("the truth", () => {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
export {
|
export {
|
||||||
assertStrictEquals,
|
assertStrictEquals,
|
||||||
} from "https://deno.land/std@0.139.0/testing/asserts.ts";
|
} from "../../../../../test_util/std/testing/asserts.ts";
|
||||||
|
|
||||||
export * from "./interface.ts";
|
export * from "./interface.ts";
|
||||||
|
|
Loading…
Reference in a new issue