mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
refactor: rewrite deno test, add Deno.test() (#3865)
* rewrite test runner in Rust * migrate "test" and "runTests" functions from std to "Deno" namespace * use "Deno.test()" to run internal JS unit tests * remove std downloads for Deno subcommands
This commit is contained in:
parent
701ce9b334
commit
a3bfbccead
13 changed files with 452 additions and 102 deletions
|
@ -59,6 +59,11 @@ declare global {
|
|||
thrown: any;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
url: string;
|
||||
main: boolean;
|
||||
}
|
||||
|
||||
interface DenoCore {
|
||||
print(s: string, isErr?: boolean): void;
|
||||
dispatch(
|
||||
|
@ -137,6 +142,9 @@ declare global {
|
|||
// Assigned to `self` global - compiler
|
||||
var bootstrapTsCompilerRuntime: (() => void) | undefined;
|
||||
var bootstrapWasmCompilerRuntime: (() => void) | undefined;
|
||||
|
||||
var performance: performanceUtil.Performance;
|
||||
var setTimeout: typeof timers.setTimeout;
|
||||
/* eslint-enable */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue