diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-04-27 19:14:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 13:14:01 +0200 |
commit | 3a03084580188f53d348dc687aea83b2e6f1a851 (patch) | |
tree | 8d9f6f08162bd3ded3fc78c8fbb6ee0b7fa99c51 /cli/tests/integration_tests.rs | |
parent | baf7092ea2ac97bee93213ddf639bb9b41f0888e (diff) |
test(cli): run unit tests using Deno.test (#10330)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 9 |
1 files changed, 5 insertions, 4 deletions
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()); |