mirror of
https://github.com/denoland/deno.git
synced 2024-11-15 16:43:44 -05:00
c455c28b83
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.
11 lines
153 B
JavaScript
11 lines
153 B
JavaScript
Deno.test({
|
|
name: "unresolved promise",
|
|
fn() {
|
|
return new Promise((_resolve, _reject) => {});
|
|
},
|
|
});
|
|
|
|
Deno.test({
|
|
name: "ok",
|
|
fn() {},
|
|
});
|