deno/cli/js
Bartek Iwańczuk 6e2df8c64f
feat: Deno.test() sanitizes ops and resources (#4399)
This PR brings assertOps and assertResources sanitizers to Deno.test() API.

assertOps checks that test doesn't leak async ops, ie. there are no unresolved
promises originating from Deno APIs. Enabled by default, can be disabled using 
Deno.TestDefinition.disableOpSanitizer.

assertResources checks that test doesn't leak resources, ie. all resources used
in test are closed. For example; if a file is opened during a test case it must be
explicitly closed before test case finishes. It's most useful for asynchronous
generators. Enabled by default, can be disabled using 
Deno.TestDefinition.disableResourceSanitizer.

We've used those sanitizers in internal runtime tests and it proved very useful in
surfacing incorrect tests which resulted in interference between the tests.

All tests have been sanitized.

Closes #4208
2020-03-18 19:25:55 -04:00
..
compiler Provide compiled JSON to TypeScript compiler. (#4404) 2020-03-18 12:39:53 -04:00
ops Add mode option to open/create (#4289) 2020-03-16 15:02:41 -04:00
tests feat: Deno.test() sanitizes ops and resources (#4399) 2020-03-18 19:25:55 -04:00
web feat: fetch should accept a FormData body (#4363) 2020-03-17 02:32:43 -04:00
buffer.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
build.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
colors.ts refactor: rewrite deno test, add Deno.test() (#3865) 2020-02-11 12:01:56 +01:00
compiler.ts Remove Object.prototype.__proto__ (#4341) 2020-03-15 11:34:22 +01:00
core.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
deno.ts refactor: unit test runner communicates using TCP socket (#4336) 2020-03-13 15:57:32 +01:00
diagnostics.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
diagnostics_util.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
error_stack.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
errors.ts Remove Deno.errors.Other (#4249) 2020-03-04 13:18:32 -05:00
file_info.ts BREAKING CHANGE FileInfo.len renamed to FileName.size (#4338) 2020-03-14 22:57:42 -04:00
files.ts Add mode option to open/create (#4289) 2020-03-16 15:02:41 -04:00
globals.ts feat: Deno.core.{encode,decode}; standalone UTF-8 encoding/decoding (#4349) 2020-03-15 15:31:55 +01:00
internals.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
io.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
lib.deno.ns.d.ts feat: Deno.test() sanitizes ops and resources (#4399) 2020-03-18 19:25:55 -04:00
lib.deno.shared_globals.d.ts refactor: Cleanup options object parameters (#4296) 2020-03-10 12:08:58 -04:00
lib.deno.window.d.ts add window.self read-only property (#4131) 2020-02-26 11:49:38 +01:00
lib.deno.worker.d.ts Support loading additional TS lib files (#3863) 2020-02-19 00:34:11 -05:00
main.ts Remove Object.prototype.__proto__ (#4341) 2020-03-15 11:34:22 +01:00
net.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
permissions.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
plugins.ts reorg: move JS ops implementations to cli/js/ops/, part 2 (#4283) 2020-03-09 15:18:02 +01:00
process.ts refactor: add no-return-await lint rule (#4384) 2020-03-16 10:22:16 +01:00
rbtree.ts cli: replace timer map with red-black tree (#3218) 2019-10-31 17:11:58 -07:00
read_file.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
repl.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
runtime.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
runtime_main.ts reorg: Deno global initialization (#4317) 2020-03-11 21:57:24 +01:00
runtime_worker.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
signals.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
symbols.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
testing.ts feat: Deno.test() sanitizes ops and resources (#4399) 2020-03-18 19:25:55 -04:00
tls.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
util.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
version.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
write_file.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00