Kitson Kelly
bced52505f
Update to Prettier 2 and use ES Private Fields ( #4498 )
2020-03-28 13:03:49 -04:00
Bartek Iwańczuk
30bcf6a2ea
Revert "avoid using same port number for test ( #4147 )"
...
Ref #4467
This reverts commit 60cee4f045
.
2020-03-24 12:24:58 -04:00
uki00a
07ea145ec4
re-enable a test ( #4461 )
2020-03-22 14:41:42 -04:00
Akshat Agarwal
b8a5c29bf8
BREAKING CHANGE Rename Deno.run's args to cmd ( #4444 )
...
This is to avoid confusion with Deno.args which does not include the
executable to be run.
2020-03-21 17:44:18 -04:00
Yusuke Sakurai
60cee4f045
avoid using same port number for test ( #4147 )
2020-03-21 09:53:47 -04:00
Samrith Shankar
798904b0f2
Add require-await lint rule ( #4401 )
2020-03-20 09:38:34 -04:00
Bartek Iwańczuk
b0b27c4310
refactor: rename Deno.TestDefinition.skip to ignore ( #4400 )
2020-03-19 10:58:12 +01:00
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
Nayeem Rahman
6471d4cfab
refactor(std): Uncomment disabled tests, use skip option ( #4378 )
2020-03-15 13:03:25 +01:00
Bartek Iwańczuk
1b6f831875
reorg: move JS ops implementations to cli/js/ops/, part 1 ( #4264 )
...
Following JS ops were moved to separate files in cli/js/ops directory:
- compiler
- dispatch_json
- dispatch_minimal
- errors
- fetch
- fs_events
- os
- random
- repl
- resources
- runtime_compiler
- runtime
- tty
2020-03-08 13:09:22 +01:00
Yusuke Sakurai
c65d0c63e7
reduce unnecessary output on tests ( #4148 )
2020-02-27 15:12:04 -05:00
Bartek Iwańczuk
5da7c7df1d
disable std/examples/chat tests for windows ( #4109 )
2020-02-24 12:58:13 -05:00
uki00a
fe9ac35a65
fix(std/examples): add tests for examples ( #4094 )
2020-02-24 08:31:40 -05:00
Yusuke Sakurai
162d66d23f
fix: chat example's content-security-policy ( #4091 )
2020-02-24 08:10:00 -05:00
Yusuke Sakurai
8b646e8657
Added browser chat example ( #4022 )
2020-02-22 18:51:04 -05:00
jigsaw
c34d96d865
Fix example ( #4076 )
2020-02-22 18:45:35 -05:00
Maximilien Mellen
90125566bb
Enable TS strict mode by default ( #3899 )
...
Fixes #3324
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-02-19 15:36:18 -05:00
Nayeem Rahman
5a3292047c
feat(std/io): Export readDelim(), readStringDelim() and readLines() from bufio.ts ( #4019 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-02-17 19:51:13 -05:00
Bartek Iwańczuk
61273085e4
refactor: rewrite tests in std/ to use Deno.test ( #3930 )
2020-02-11 17:24:27 +01:00
Yusuke Sakurai
c2986891f6
remove non-null assertion operator from std (part1) ( #3900 )
2020-02-07 02:23:38 -05:00
Kevin (Kun) "Kassimo" Qian
97b2a0bb95
bring back std/examples/xeval.ts ( #3822 )
2020-01-30 21:02:14 -05:00
Bartek Iwańczuk
de5c099b47
feat: deno install in Rust ( #3806 )
...
//std/installer couldn't be removed due to bug, but it's now deprecated.
2020-01-30 18:42:39 -05:00
Ry Dahl
a4dde552de
Revert "feat(flags): script arguments come after '--'" ( #3681 )
...
Due to complaints about ergonomics and because it breaks shebang on
linux.
This reverts commit 2d5457df15
.
BREAKING CHANGE
2020-01-15 19:21:35 -05:00
Tomofumi Chiba
8a352f7260
fix curl.ts ( #3677 )
2020-01-15 08:05:22 -06:00
Ry Dahl
d492c5abe3
feat: Deno.args now does not include script ( #3628 )
...
Previously Deno.args was ["script.js", "arg1", "arg2"]
Now it is just ["arg1", "arg2"]
BREAKING CHANGE
2020-01-09 11:37:01 -07:00
Ry Dahl
2d5457df15
feat(flags): script arguments come after '--' ( #3621 )
2020-01-08 14:59:53 -05:00
Ry Dahl
bfab4ed0df
Happy new year! ( #3578 )
2020-01-02 15:13:47 -05:00
Andy Hayden
f484776384
Use top-level for-await in various places ( #3217 )
2019-10-28 15:58:35 -04:00
Andy Hayden
aec5a646c9
feat: top-level-for-await ( #3212 )
2019-10-27 09:04:42 -04:00
Ry Dahl
073b64bd43
Add std/examples/welcome.ts ( #3181 )
2019-10-23 09:57:08 -07:00
Rory Hart
27cd2c97f1
curl.ts example with reference in manual ( #3161 )
2019-10-21 10:36:01 -04:00
Ryan Dahl
151ce0266e
Move everything into std subdir
2019-10-09 17:10:09 -04:00