summaryrefslogtreecommitdiff
path: root/cli/js/test_util.ts
AgeCommit message (Collapse)Author
2020-03-10reorg: move js runtime tests to cli/js/tests/ (#4250)Bartek Iwańczuk
All Deno runtime test files were moved to cli/js/tests/ directory. It makes a clear distinction that cli/js/tests/ contains code that is run under Deno runtime as opposed to code in cli/js/ which is used to create bundle and snapshot with "deno_typescript".
2020-03-06Rename readDir -> readdir (#4225)dubiousjim
2020-03-04refactor: rewrite testPerm into unitTest (#4231)Bartek Iwańczuk
Rewrite "testPerm" helper function used for testing of internal runtime code. It's been renamed to "unitTest" and provides API that is extensible in the future by accepting optional "UnitTestOptions" argument. "test" helper was also removed and replaced by overloaded version of "unitTest" that takes only function argument. "UnitTestOptions" currently supports "perms" and "skip" options, where former works exactly as first argument to "testPerm" did, while the latter allows to conditionally skip tests.
2020-03-03add assertOps sanitizer in cli/js/ unit tests (#4209)Bartek Iwańczuk
* add "assertOps" test assertion which makes sure test case is not "leaking" ops - ie. after test finishes there are no pending async ops * apply "assertOps" to all tests in "cli/js/" * fix numerous tests leaking ops * document problem with edge case in "clearInterval" and "clearTimeout" implementation where they may leak async ops * move "cli/js/worker_test.ts" to "cli/tests/worker_test.ts" and run as integration test; workers leak ops because of missing "terminate" implementation
2020-02-29add assertResources sanitizer to cli/js/ unit tests (#4161)Bartek Iwańczuk
2020-02-26stream output of js unit tests (#4146)Bartek Iwańczuk
2020-02-19Enable TS strict mode by default (#3899)Maximilien Mellen
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-02-11refactor: rewrite deno test, add Deno.test() (#3865)Bartek Iwańczuk
* 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
2020-02-05fix: Validate all tests included in unit_tests.ts (#3879)Chris Knight
2020-02-03Make fetch API more standards compliant (#3667)serverhiccups
2020-01-02Happy new year! (#3578)Ry Dahl
2019-12-05feat: first pass at native plugins (#3372)Andy Finch
2019-10-27Use web standard Permissions API (#3200)Yoshiya Hinosawa
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl