diff options
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r-- | cli/tests/integration/test_tests.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index 981923359..e1c7700db 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -62,6 +62,32 @@ itest!(collect { output: "test/collect.out", }); +itest!(jobs_flag { + args: "test test/short-pass.ts --jobs", + exit_code: 0, + output: "test/short-pass.out", +}); + +itest!(jobs_flag_with_numeric_value { + args: "test test/short-pass.ts --jobs=2", + exit_code: 0, + output: "test/short-pass-jobs-flag-with-numeric-value.out", +}); + +itest!(jobs_flag_with_env_variable { + args: "test test/short-pass.ts --jobs", + envs: vec![("DENO_JOBS".to_owned(), "2".to_owned())], + exit_code: 0, + output: "test/short-pass.out", +}); + +itest!(jobs_flag_with_numeric_value_and_env_var { + args: "test test/short-pass.ts --jobs=2", + envs: vec![("DENO_JOBS".to_owned(), "3".to_owned())], + exit_code: 0, + output: "test/short-pass-jobs-flag-with-numeric-value.out", +}); + itest!(load_unload { args: "test test/load_unload.ts", exit_code: 0, |