mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 01:59:06 -05:00
f3751e498f
This commits adds adds "permissions" option to the test definitions which allows tests to run with different permission sets than the process's permission. The change will only be in effect within the test function, once the test has completed the original process permission set is restored. Test permissions cannot exceed the process's permission. You can only narrow or drop permissions, failure to acquire a permission results in an error being thrown and the test case will fail. |
||
---|---|---|
.. | ||
allow_all.out | ||
allow_all.ts | ||
allow_none.out | ||
allow_none.ts | ||
deno_test.out | ||
deno_test_fail_fast.out | ||
deno_test_no_color.ts | ||
deno_test_only.ts | ||
deno_test_only.ts.out | ||
deno_test_unresolved_promise.out | ||
exit_sanitizer_test.out | ||
exit_sanitizer_test.ts | ||
test_finally_cleartimeout.out | ||
test_finally_cleartimeout.ts | ||
test_runner_test.ts | ||
test_unresolved_promise.js |