From 3a03084580188f53d348dc687aea83b2e6f1a851 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Tue, 27 Apr 2021 19:14:01 +0800 Subject: test(cli): run unit tests using Deno.test (#10330) Co-authored-by: Luca Casonato --- cli/tests/integration_tests.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cli/tests/integration_tests.rs') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index bb99cf49b..b5e5d1fa6 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -33,16 +33,17 @@ fn js_unit_tests_lint() { #[test] fn js_unit_tests() { let _g = util::http_server(); + let mut deno = util::deno_cmd() .current_dir(util::root_path()) - .arg("run") + .arg("test") .arg("--unstable") + .arg("--location=http://js-unit-tests/foo/bar") .arg("-A") - .arg("cli/tests/unit/unit_test_runner.ts") - .arg("--master") - .arg("--verbose") + .arg("cli/tests/unit") .spawn() .expect("failed to spawn script"); + let status = deno.wait().expect("failed to wait for the child process"); assert_eq!(Some(0), status.code()); assert!(status.success()); -- cgit v1.2.3