summaryrefslogtreecommitdiff
path: root/cli/tests
AgeCommit message (Collapse)Author
2022-07-18fix: revert changes to test output for uncaught errors (#15231)Bartek Iwańczuk
2022-07-18BREAKING(unstable): Improve Deno.spawn() stdio API (#14919)Nayeem Rahman
- "SpawnOutput" extends "ChildStatus" instead of composing it - "SpawnOutput::stdout", "SpawnOutput::stderr", "Child::stdin", "Child::stdout" and "Child::stderr" are no longer optional, instead made them getters that throw at runtime if that stream wasn't set to "piped". - Remove the complicated "<T extends SpawnOptions = SpawnOptions>" which we currently need to give proper type hints for the availability of these fields. Their typings for these would get increasingly complex if it became dependent on more options (e.g. "SpawnOptions::pty" which if set should make the stdio streams unavailable)
2022-07-15refactor: allocate IDs for tests (#14729)Nayeem Rahman
2022-07-15feat(cli/test): add `DENO_JOBS` env variable for `test` subcommand (#14929)Mark Ladyshau
2022-07-15Revert "feat: add "unhandledrejection" event support (#12994) (#15080)" (#15210)Bartek Iwańczuk
This reverts commit 1a7259b04b7229f6350a7a7c21b50497b5c80c17.
2022-07-14feat: add "unhandledrejection" event support (#12994) (#15080)Bartek Iwańczuk
Relanding #12994 This commit adds support for "unhandledrejection" event. This event will trigger event listeners registered using: "globalThis.addEventListener("unhandledrejection") "globalThis.onunhandledrejection" This is done by registering a default handler using "Deno.core.setPromiseRejectCallback" that allows to handle rejected promises in JavaScript instead of Rust. This commit will make it possible to polyfill "process.on("unhandledRejection")" in the Node compat layer. Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-14fix(cli): expand tsc roots when using checkJs (#15164)Rafael Ávila de Espíndola
A JS file can still point to a TS file, so we need to expand the roots in the checkJs case too. Fixes: #15163
2022-07-13fix(cli): Improve error message in watch mode (#15184)2shiori17
2022-07-13chore: remove flaky writeSyncWhileAsyncFails test (#15194)David Sherret
2022-07-13fix(cli): synchronize async stdio/file reads and writes (#15092)David Sherret
Fixes a regression where async writes and reads could get out of order.
2022-07-13chore: fix flaky `integration::test::meta` (#15192)David Sherret
2022-07-13chore: fix pty_complete_imports test on linux/mac (#15191)David Sherret
2022-07-12fix(repl): do not panic for import completions when the import specifier is ↵David Sherret
empty (#15177)
2022-07-12perf: use emit from swc instead of tsc (#15118)David Sherret
2022-07-12fix(ext/http): reading headers with ongoing body reader (#15161)Divy Srivastava
2022-07-12chore: fix repl::pty_emoji test on linux (#15166)David Sherret
2022-07-12fix(lsp): enable auto imports (#15145)Kitson Kelly
Fixes: #15111
2022-07-11fix(coverage): better handling of multi-byte characters (#15159)David Sherret
2022-07-11perf(cli/proc_state): Get error source lines from memory (#15031)Nayeem Rahman
2022-07-04Revert "feat: add "unhandledrejection" event support (#12994)" (#15075)Bartek Iwańczuk
This reverts commit f7af0b01a59aaac91473e2f920137004d39a310a.
2022-07-04feat: add "unhandledrejection" event support (#12994)Bartek Iwańczuk
This commit adds support for "unhandledrejection" event. This event will trigger event listeners registered using: "globalThis.addEventListener("unhandledrejection") "globalThis.onunhandledrejection" This is done by registering a default handler using "Deno.core.setPromiseRejectCallback" that allows to handle rejected promises in JavaScript instead of Rust. This commit will make it possible to polyfill "process.on("unhandledRejection")" in the Node compat layer. Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-01chore: use Rust 1.62.0 (#15028)Bartek Iwańczuk
2022-06-29fix(vendor): ignore import map in output directory instead of erroring (#14998)David Sherret
2022-06-29fix(ext/web): remove `ErrorEventInit`'s error default (#14809)Mark Ladyshau
2022-06-28feat(web): add beforeunload event (#14830)Colin Ihrig
This commit adds the 'beforeunload' event. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-06-25fix(modules): Immediately resolve follow-up dyn imports to a dyn imported ↵Andreu Botella
module (#14958) When a dynamically imported module gets resolved, any code that comes after an await import() to that module will continue running. However, if that is the last code in the evaluation of another dynamically imported module, that second module will not resolve until the next iteration of the event loop, even though it does not depend on the event loop at all. When the event loop is being blocked by a long-running operation, such as a long-running timer, or by an async op that might never end, such as with workers or BroadcastChannels, that will result in the second dynamically imported module not being resolved for a while, or ever. This change fixes this by running the dynamic module loading steps in a loop until no more dynamic modules can be resolved.
2022-06-25fix(core): don't panic on non-existent cwd (#14957)Divy Srivastava
Co-authored-by: cjihrig <cjihrig@gmail.com>
2022-06-24fix: don't error if Deno.bench() or Deno.test() are used in run subcommand ↵Bartek Iwańczuk
(#14946)
2022-06-23fix(check): ignore TS2306 (#14940)Nayeem Rahman
Fixes a regression where this type checking error was being surfaced in certain scenarios.
2022-06-23fix(fmt): ignore node_modules directory (#14943)Bartek Iwańczuk
2022-06-21chore(test_util): add new string assertion macros (#14928)David Sherret
2022-06-20fix(repl): accept tab when previous character is whitespace (#14898)sigmaSd
2022-06-20fix: do not panic running .d.cts and .d.mts files (#14917)David Sherret
2022-06-20BREAKING(ext/ffi): Remove `Deno.UnsafePointer` indirection (#14915)Divy Srivastava
2022-06-20feat(ext/ffi): Callbacks (#14663)Aapo Alasuutari
This commit adds support for unstable FFI callbacks. A callback is registered using the `Deno.UnsafeCallback` API. The backing memory for the callback can be disposed of using `Deno.UnsafeCallback#close`. It is not safe to pass the callback after calling close. Callbacks from other than the isolate thread are not supported. Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com> Co-authored-by: Bert Belder <bertbelder@gmail.com>
2022-06-19fix(ext/fetch): add `accept-language` default header to fetch (#14882)Mark Ladyshau
2022-06-18fix(fmt): should fail `--check` on parse error (#14907)David Sherret
2022-06-17fix(ext/web): add EventTarget brand checking (#14637)Colin Ihrig
This commit adds brand checking to EventTarget. It also fixes a bug where deno would crash if an abort signal was aborted on the global addEventListener().
2022-06-16fix: make Performance global an EventTargetcjihrig
This commit updates the Performance global to extend EventTarget.
2022-06-15upgrade: v8 10.4.132.5 (#14874)Ryan Dahl
2022-06-15fix(check): use "moduleDetection": "force" (#14875)Nayeem Rahman
2022-06-15fix(url): properly indent when inspecting URLs (#14867)cjihrig
This commit updates the custom inspect function for URL objects to pass the inspect options through so that the context is propagated and the resulting indentation is correct. Fixes: https://github.com/denoland/deno/issues/14171
2022-06-15fix(console): constrol inspect() indent with option (#14867)cjihrig
This commit updates the Deno.inspect() logic to use the indentLevel option to control indentation instead of passing around separate indent/level parameters internally. Refs: https://github.com/denoland/deno/issues/8099 Refs: https://github.com/denoland/deno/issues/14171
2022-06-15BREAKING: remove `Intl.v8BreakIterator` (#14864)Luca Casonato
This is a non-standard API that is mostly replaced by `Intl.Segmenter`.
2022-06-14refactor(runtime/signal): revert SIGINT and SIGBREAK `Deno.kill` Windows ↵David Sherret
changes (#14865)
2022-06-14feat(test): update test summary report (#14629)Mark Ladyshau
2022-06-14feat(vendor): support using an existing import map (#14836)David Sherret
2022-06-13Deno.exit() is an alias to self.close() in worker contexts (#14826)Bartek Iwańczuk
This commit changes Deno.exit() to be an alias to self.close() in worker contexts, and the provided exit code becomes is ignored.
2022-06-13feat: no type-check by default (#14691)Bartek Iwańczuk
This commit changes default default behavior of type checking for several subcommands. Instead of type checking and reporting type errors only for local files, the type checking is skipped entirely. Type checking can still be enabled using the "--check" flag. Following subcomands are affected: - deno cache - deno install - deno eval - deno run
2022-06-13feat(runtime/signal): implement SIGINT and SIGBREAK for windows (#14694)Geert-Jan Zwiers
This commit adds support for SIGINT and SIGBREAK signals on Windows platform. Co-authored-by: orange soeur <juzi201314@gmail.com>