diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-04-29 02:17:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 20:17:04 +0200 |
commit | c455c28b834683f6516422dbf1b020fbb2c1bbb6 (patch) | |
tree | 96e1484f4853969ae46539c26ffd8d716f409eb7 /cli/tests/test/test_unresolved_promise.js | |
parent | 0260b488fbba9a43c64641428d3603b8761067a4 (diff) |
feat(test): run test modules in parallel (#9815)
This commit adds support for running test in parallel.
Entire test runner functionality has been rewritten
from JavaScript to Rust and a set of ops was added to support reporting in Rust.
A new "--jobs" flag was added to "deno test" that allows to configure
how many threads will be used. When given no value it defaults to 2.
Diffstat (limited to 'cli/tests/test/test_unresolved_promise.js')
-rw-r--r-- | cli/tests/test/test_unresolved_promise.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cli/tests/test/test_unresolved_promise.js b/cli/tests/test/test_unresolved_promise.js index 466b18864..8f50e907a 100644 --- a/cli/tests/test/test_unresolved_promise.js +++ b/cli/tests/test/test_unresolved_promise.js @@ -1,15 +1,11 @@ Deno.test({ name: "unresolved promise", fn() { - return new Promise((_resolve, _reject) => { - console.log("in promise"); - }); + return new Promise((_resolve, _reject) => {}); }, }); Deno.test({ name: "ok", - fn() { - console.log("ok test"); - }, + fn() {}, }); |