summaryrefslogtreecommitdiff
path: root/test_util/src
AgeCommit message (Collapse)Author
2021-11-14chore(tests): fix typo in pty.rs (#12757)Ikko Ashimine
2021-11-09fix(fetch): set content-length for empty POST/PUT (#12703)Luca Casonato
This commit changes `fetch` to set `content-length: 0` on POST and PUT requests with no body.
2021-11-09feat(cli): support React 17 JSX transforms (#12631)Kitson Kelly
Closes #8440
2021-10-25fix(tls): Make TLS clients support HTTP/2 (#12530)Andreu Botella
`fetch()` and client-side websocket used to support HTTP/2, but this regressed in #11491. This patch reenables it by explicitly adding `h2` and `http/1.1` to the list of ALPN protocols on the HTTP and websocket clients.
2021-09-30feat(tls): custom in memory CA certificates (#12219)Luca Casonato
This adds support for using in memory CA certificates for `Deno.startTLS`, `Deno.connectTLS` and `Deno.createHttpClient`. `certFile` is deprecated in `startTls` and `connectTls`, and removed from `Deno.createHttpClient`.
2021-09-20chore(tests): windows pty tests (#12091)David Sherret
2021-09-09fix: permission prompt stuffing (#11931)Ryan Dahl
Fixes #9750
2021-09-08feat(cli): Support Basic authentication in DENO_AUTH_TOKENS (#11910)BasiqueEvangelist
2021-08-25feat(fetch): mTLS client certificates for fetch() (#11721)Sean Michael Wykes
This commit adds support for specifying client certificates when using fetch, by means of `Deno.createHttpClient`.
2021-08-17chore(tests): delete the temporary deno dir when dropping the test lsp ↵David Sherret
client (#11749)
2021-08-11chore: move test files to testdata directory (#11601)David Sherret
2021-08-09feat: support client certificates for connectTls (#11598)Ryan Dahl
Co-authored-by: Daniel Lamando <dan@danopia.net> Co-authored-by: Erik Price <github@erikprice.net>
2021-08-06feat(repl): add --eval flag for evaluating code when the repl starts (#11590)David Sherret
2021-07-03feat: enable WebAssembly.instantiateStreaming and wasm async compilation ↵Andreu Botella
(#11200) The WebAssembly streaming APIs used to be enabled, but used to take buffer sources as their first argument (see #6154 and #7259). This change re-enables them, requiring a Promise<Response> instead, as well as enabling asynchronous compilation of WebAssembly modules.
2021-06-17chore: upgrade Rust to 1.53.0 (#11021)Yusuke Tanaka
2021-06-10chore: Fix broken test on Windows (#10900)David Sherret
2021-06-08chore(tests): Friendlier message when running the tests and forgetting to ↵David Sherret
run `cargo build` first. (#10901)
2021-05-21chore(lsp): provide test for lsp deadlock issue (#10679)Kitson Kelly
Resolves: #10587
2021-05-18refactor: share test harness for lsp between bench and integration (#10659)Kitson Kelly
2021-05-13fix(cli): ignore x-typescript-types header when media type is not js/jsx ↵Yoshiya Hinosawa
(#10574)
2021-05-09chore(test): remove unused function (#10537)Ben Noordhuis
Remove a function that was forgotten in commit 2638aa03a5 from January.
2021-04-26Remove denort optimization (#10350)Ryan Dahl
denort is an optimization to "deno compile" to produce slightly smaller output. It's a decent idea, but causes a lot of negative side-effects: - Deno's link time is a source of constant agony both locally and in CI, denort doubles link time. - The release process is a long and arduous undertaking with many manual steps. denort necessitates an additional manual zip + upload from M1 apple computers. - The "deno compile" interface is complicated with the "--lite" option. This is confusing for uses ("why wouldn't you want lite?"). The benefits of this feature do not outweigh the negatives. We must find a different approach to optimizing "deno compile" output.
2021-04-09feat(lsp): add registry import auto-complete (#9934)Kitson Kelly
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-03-25upgrade: Rust 1.51.0 (#9895)Yusuke Tanaka
2021-02-24test: Fix --reload in integration_tests (#9345)Yosi Pramajaya
This commit removes redundant "--reload" args because "util::deno_cmd" recreates "DENO_DIR". This commit also fixes ta_reload in integration tests to actually test reload.
2021-02-21fix(op_crates/websocket): default to close code 1005 (#9339)DjDeveloper
Currently if WebSocket is closed without code, it will error while on Chrome it would close with code 1005 instead. Co-authored-by: crowlKats <13135287+crowlKats@users.noreply.github.com>
2021-02-16feat(cli): support auth tokens for accessing private modules (#9508)Kitson Kelly
Closes #5239
2021-02-02chore: remove std directory (#9361)Casper Beyer
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
2021-02-01refactor: Reorganise integration tests (#9282)Bartek Iwańczuk
This commit reorganises cli/tests/integration_tests.rs. All integration tests had been moved into integration module, which allows to run only integration tests by "cargo test integration". Additionally some tests were further grouped under nested modules like "inspector", "file_watcher" or "repl".
2021-01-19feat(unstable): add Deno.resolveDns API (#8790)Yusuke Tanaka
2021-01-17benchmark: cleanup serde_json values being passed around (#9115)William Perron
2021-01-13build: disable cafile_* tests and use slow runners (#9089)Luca Casonato
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-10upgrade: tokio 0.1 in test_util crate (#8885)Yosi Pramajaya
This commit upgrades "tokio" and crates from tokio ecosystem in "test_util" crate.
2021-01-08feat: denort binary (#9041)Luca Casonato
This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-05tests: add web platform test runner (#8990)Luca Casonato
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-01-02fix(test_util): make hyper server single-threaded (#8951)Ben Noordhuis
Use Tokio's single-threaded scheduler. The hyper server is used as a point of comparison for the (single-threaded!) benchmarks in cli/bench. We're not comparing apples to apples if we use the default multi-threaded scheduler. This drops the requests/sec from 284k to 130k on my 12 core Ryzen 5 system. That still leaves a 50k gap for us to close. Working on it!
2020-12-30fix(op_crates/fetch): correct regexp for fetch header (#8927)Rich Trott
Fix bug in regular expression and make the regular expression more strict. In a string passed to new RegExp(), '[\t\s]' is identical to '[ts]' and not `/[\t\s]/`. For that, the backslash needs to be escaped in the string. Futhermore, `\t` is the tab character and is included in the special regexp value `\s` so is unnecessary. That would reduce the RegExp to new RegExp(`^${value}\\s*;?`) but there's no point in matching 0 or more space characters followed by 0 or one semi-colons as that will match no matter what follows `value`. To make it more strict, require one of space, semicolon, or end-of-string after value.
2020-12-24refactor(test_util): replace "warp" with "hyper" (#8846)Yosi Pramajaya
This commit rewrites "test_server" to use "hyper" instead of "warp" in an effort to reduce number of dependencies.
2020-12-09fix(op_crates/fetch): support non-ascii response headers value (#8600)Jae-Heon Ji
2020-11-28chore: clippy future cleanups (#8514)Kitson Kelly
2020-11-16fix(cli): local sources are not cached in memory (#8328)Kitson Kelly
Fixes #4743 Closes #5253 Fixes #5631 Fixes #6116 Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-11-13refactor(cli+core): various cleanups in Rust (#8336)KNnut
2020-11-05build: rewrite tools/ scripts to deno (#8247)Bartek Iwańczuk
This commit rewrites scripts in "tools/" directory to use Deno instead of Python. In return it allows to remove huge number of Python packages in "third_party/".
2020-10-26chore: add bundle_no_check benchmark (#8130)Luca Casonato
2020-10-26fix(cli): properly handle roots with extensions that don't match media type ↵Kitson Kelly
(#8114)
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-05feat: Implement WebSocket API (#7051)crowlKats
2020-09-04fix: Handle bad redirects more gracefully (#7342)Ryan Dahl