diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-11 12:01:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 12:01:56 +0100 |
commit | a3bfbcceade3d359f677106399562b461b4af01a (patch) | |
tree | 93f6fcc56d98bbc0f71f5b5782381f672895f634 /cli/js/globals.ts | |
parent | 701ce9b3342647cf01cb23c4fc28bc99ce0aa8c1 (diff) |
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
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r-- | cli/js/globals.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts index 53eb696ac..9a7161ff0 100644 --- a/cli/js/globals.ts +++ b/cli/js/globals.ts @@ -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 */ } |