Bartek Iwańczuk
d318e38b76
Revert "fix(watch): preserve ProcState::file_fetcher
between restarts ( #15466 ) ( #17591 )
...
This reverts commit 3545bff678
.
2023-01-30 16:22:17 +01:00
David Sherret
f5840bdcd3
chore: upgrade to Rust 1.67 ( #17548 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-27 10:43:16 -05:00
David Sherret
654e177c91
refactor(deno_graph): remove unused Resolved::Ok#kind usage ( #17504 )
...
See https://github.com/denoland/deno_graph/pull/205 for more details.
2023-01-24 08:23:19 -05:00
Geert-Jan Zwiers
e023a6e3f0
refactor(cli): fewer clones ( #17450 )
2023-01-16 15:27:41 -05:00
Geert-Jan Zwiers
052bcc62bb
refactor(cli/tools): reduce cloning ( #17309 )
2023-01-13 22:39:19 +01:00
Leo Kettmeir
692f9af14a
fix: don't unwrap in test pipe handling logic ( #17341 )
...
Fixes #14746
2023-01-12 02:30:23 +01:00
Nayeem Rahman
71ea4ef274
fix(watch): preserve ProcState::file_fetcher
between restarts ( #15466 )
...
This commit changes "ProcState" to store "file_fetcher" field in an "Arc",
allowing it to be preserved between restarts and thus keeping the state
alive between the restarts. File watchers for "deno test" and "deno bench"
now reset "ProcState" between restarts.
2023-01-10 16:28:10 +01:00
Geert-Jan Zwiers
84ef26ac9b
refactor(cli/tools): move flag and config logic to CliOptions ( #17008 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-01-07 15:22:09 -05:00
Bartek Iwańczuk
fac6447815
refactor(permissions): add PermissionsContainer struct for internal mutability ( #17134 )
...
Turns out we were cloning permissions which after prompting were discarded,
so the state of permissions was never preserved. To handle that we need to store
all permissions behind "Arc<Mutex<>>" (because there are situations where we
need to send them to other thread).
Testing and benching code still uses "Permissions" in most places - it's undesirable
to share the same permission set between various test/bench files - otherwise
granting or revoking permissions in one file would influence behavior of other test
files.
2023-01-07 17:25:34 +01:00
David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
David Sherret
2fab4583ef
fix(test): improve how --fail-fast
shuts down when hitting limit ( #16956 )
...
Closes #15650
2022-12-05 16:17:49 -05:00
David Sherret
2d4c46c975
refactor: create util folder, move nap_sym to napi/sym, move http_cache to cache folder ( #16857 )
2022-11-28 17:28:54 -05:00
Bartek Iwańczuk
d232746928
feat(core): Ability to create snapshots from existing snapshots ( #16597 )
...
Co-authored-by: crowlkats <crowlkats@toaxl.com>
2022-11-21 14:36:26 +01:00
Aaron O'Mullan
238590aa9f
chore: use Rust 1.65.0 ( #16688 )
2022-11-18 02:59:10 +01:00
Ben Noordhuis
b1b418b81a
chore: fix clippy warnings ( #15944 )
...
Stop allowing clippy::derive-partial-eq-without-eq and fix warnings
about deriving PartialEq without also deriving Eq.
In one case I removed the PartialEq because it a) wasn't necessary,
and b) sketchy because it was comparing floating point numbers.
IMO, that's a good argument for enforcing the lint rule, because it
would most likely have been caught during review if it had been enabled.
2022-09-19 10:25:03 +02:00
Christian Dürr
63b8089bda
refactor: move JsError formatting to deno_runtime ( #15345 )
...
This takes the existing `fmt_error` module from cli and puts it as a
public module into `deno_runtime`.
2022-09-02 22:53:23 +02:00
David Sherret
e7367044d9
feat: binary npm commands ( #15542 )
2022-08-23 10:39:19 -04:00
Mathias Lafeldt
e96933bc16
chore: use Rust 1.63.0 ( #15464 )
2022-08-21 19:31:14 +02:00
David Sherret
c3b04683c5
refactor(cli): consolidate most MainWorker related code to the same place ( #15459 )
2022-08-11 16:59:12 -04:00
Leo Kettmeir
d0ffa0beb5
fix(permissions): ignore empty values ( #15447 )
2022-08-10 21:13:53 +02:00
Nayeem Rahman
34328690dc
fix(test): output parallel test results independently ( #15399 )
2022-08-04 12:38:40 -04:00
Nayeem Rahman
2e2c623882
fix(test): race condition for cancelled tests ( #15233 )
2022-08-02 10:55:11 -04:00
Roj
70d1ecaeaa
feat(cli): support configuring the test tool in the config file ( #15079 )
2022-07-18 15:12:19 -04:00
Nayeem Rahman
22a4998e29
refactor: allocate IDs for tests ( #14729 )
2022-07-15 13:09:22 -04:00
cuobiezi
83818c914b
refactor: rename run_basic to run_local ( #15068 )
2022-07-11 19:02:23 +02:00
David Sherret
95d2f206fc
refactor: extract deno_graph::create_graph
use to common function ( #15009 )
2022-07-01 11:50:16 -04:00
Bartek Iwańczuk
b8b82c3ea4
chore: use Rust 1.62.0 ( #15028 )
2022-07-01 15:28:06 +02:00
David Sherret
8c4420c005
refactor: rename RootConfig
to CliOptions
( #15007 )
2022-06-29 11:51:11 -04:00
David Sherret
01adbb1efb
refactor: add RootConfig
( #14985 )
2022-06-28 16:45:55 -04:00
Colin Ihrig
0f6a5c5fc2
feat(web): add beforeunload event ( #14830 )
...
This commit adds the 'beforeunload' event.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-06-28 10:49:30 -04:00
David Sherret
e1c90963fb
refactor: create args
folder ( #14982 )
2022-06-27 16:54:09 -04:00
Bartek Iwańczuk
d39094913e
fix: don't error if Deno.bench() or Deno.test() are used in run subcommand ( #14946 )
2022-06-24 12:00:53 +02:00
David Sherret
a7339f756c
refactor: add EmitCache
trait ( #14925 )
2022-06-20 17:59:52 -04:00
Nayeem Rahman
845d4754c6
fix(check): use "moduleDetection": "force" ( #14875 )
2022-06-15 12:26:43 -04:00
Mark Ladyshau
d4f609d8e7
feat(test): update test summary report ( #14629 )
2022-06-14 20:51:49 +02:00
Nayeem Rahman
f0dd751190
refactor(bench): Allocate IDs for benches ( #14757 )
2022-05-30 19:58:44 +02:00
David Sherret
1fcecb6789
refactor: upgrade to deno_ast 0.15 ( #14680 )
2022-05-20 16:40:55 -04:00
David Sherret
e3f4b02f48
fix: do not panic on TestOutputPipe::flush
when receiver dropped ( #14560 )
2022-05-10 17:59:35 -04:00
David Sherret
abf72c5b37
chore: fix flaky steps_output_within - part 2 ( #14562 )
2022-05-10 16:24:37 -04:00
Bartek Iwańczuk
d4ad2b809c
feat(test): repeat test name if there's user output ( #14495 )
...
This commit changes test report output to repeat test name
before printing result, but only if there's user output, denoted
by markers.
2022-05-09 13:25:04 +02:00
Nayeem Rahman
23efc4fcab
feat(test): Represent uncaught errors ( #14513 )
...
This commit adds better reporting of uncaught errors
in top level scope of testing files. This change affects
both console runner as well as LSP runner.
2022-05-09 11:44:50 +02:00
Bartek Iwańczuk
ab728e9ccf
feat(test): change "failures:" headers in test report ( #14490 )
2022-05-09 10:56:13 +02:00
Nayeem Rahman
ca134d25e1
feat(test): Show Deno.test() call locations for failures ( #14484 )
2022-05-05 01:15:54 +02:00
David Sherret
d79a869ee6
chore: fix flaky steps_output_within
test ( #14479 )
2022-05-04 17:01:51 -04:00
David Sherret
de33017a8b
fix(test): actually capture stdout and stderr in workers ( #14435 )
2022-05-01 14:44:55 -04:00
Nayeem Rahman
9853c96cc4
refactor: Remove PrettyJsError and js_error_create_fn ( #14378 )
...
This commit:
- removes "fmt_errors::PrettyJsError" in favor of "format_js_error" fn
- removes "deno_core::JsError::create" and
"deno_core::RuntimeOptions::js_error_create_fn"
- adds new option to "deno_runtime::ops::worker_host::init"
2022-04-27 01:06:10 +02:00
David Sherret
58eab0e2b3
fix(test): capture worker stdout and stderr in test output ( #14410 )
2022-04-26 19:00:04 -04:00
David Sherret
a1b4aa2ae6
fix(test): capture inherited stdout and stderr for subprocesses in test output ( #14395 )
2022-04-26 14:46:49 -04:00
Bartek Iwańczuk
f52031ecdf
feat(test): skip internal stack frames for errors ( #14302 )
...
This commit changes "deno test" to filter out stack frames if it is beneficial to the user.
This is the case when there are stack frames coming from "internal" code
below frames coming from user code.
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2022-04-18 15:22:23 +02:00
Nayeem Rahman
bd6494d119
fix(cli/tools/test): Prefix test module paths with "./" ( #14301 )
2022-04-16 21:51:55 +02:00