1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-14 19:37:59 -05:00
denoland-deno/cli/tests/testdata/test
Bartek Iwańczuk 5874fc3d0a
feat: add support for globs in the config file and CLI arguments for files (#19102)
Follow up to https://github.com/denoland/deno/pull/19084.

This commit adds support for globs in the configuration file as well 
as CLI arguments for files. 

With this change users can now use glob syntax for "include" and 
"exclude" fields, like so:

```json
{
  "lint": {
    "include": [
      "directory/test*.ts",
      "other_dir/"
    ],
    "exclude": [
      "other_dir/foo*.ts",
      "nested/nested2/*"
    ]
  },
  "test": {
    "include": [
      "data/test*.ts",
      "nested/",
      "tests/test[1-9].ts"
    ],
    "exclude": [
      "nested/foo?.ts",
      "nested/nested2/*"
    ]
  }
}
```

Or in CLI args like so:
```
// notice quotes here; these values will be passed to Deno verbatim
// and deno will perform glob expansion

$ deno fmt --ignore="data/*.ts"
$ deno lint "data/**/*.ts"
```

Closes https://github.com/denoland/deno/issues/17971
Closes https://github.com/denoland/deno/issues/6365
2023-05-23 03:39:59 +02:00
..
collect feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
doc_only fix(cli): retain path based test mode inference (#11878) 2021-09-01 18:31:56 +09:00
filter test(cli): add test for test filtering (#11672) 2021-08-13 11:33:18 +02:00
glob feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
shuffle
steps chore: fix flaky tests checking ms when CI is slow (#18559) 2023-04-06 23:48:07 +02:00
trace_ops_caught_error fix(test): handle scenario where --trace-ops would cause an unhandled promise rejection (#16970) 2022-12-06 15:58:18 -05:00
aggregate_error.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
aggregate_error.ts fix(runtime/testing): format aggregate errors (#12183) 2021-09-30 21:54:56 +02:00
allow_all.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
allow_all.ts fix: actually don't inherit runtime permissions (#14024) 2022-03-20 22:46:39 +01:00
allow_none.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
allow_none.ts
before_unload_prevent_default.out fix(test): disable preventDefault() for beforeunload event (#18911) 2023-05-03 23:10:51 +02:00
before_unload_prevent_default.ts fix(test): disable preventDefault() for beforeunload event (#18911) 2023-05-03 23:10:51 +02:00
captured_output.ts feat(lint): add Deno.run to no-deprecated-deno-api (#18869) 2023-04-27 02:52:52 +00:00
captured_output.worker.js fix(test): actually capture stdout and stderr in workers (#14435) 2022-05-01 14:44:55 -04:00
check_local_by_default.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
check_local_by_default.ts feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
check_local_by_default2.out feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
check_local_by_default2.ts feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
clear_timeout.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
clear_timeout.ts
collect.deprecated.out feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
collect.out feat(cli): support configuring the test tool in the config file (#15079) 2022-07-18 15:12:19 -04:00
collect2.out feat(cli): support configuring the test tool in the config file (#15079) 2022-07-18 15:12:19 -04:00
collect_with_malformed_config.out feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
deno.glob.json feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
deno_custom_jsx.json fix(cli): unset jsxFragmentFactory & jsxFactory options (#15264) 2022-07-21 14:44:18 +05:30
doc.out fix(check): include dts files in tsc roots (#18026) 2023-03-05 12:47:04 -05:00
doc.ts fix(check): include dts files in tsc roots (#18026) 2023-03-05 12:47:04 -05:00
doc_only.out refactor(cli): move runTests() and runBenchmarks() to rust (#18563) 2023-04-13 19:43:23 +02:00
exit_sanitizer.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
exit_sanitizer.ts
fail.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
fail.ts
fail_fast.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
fail_fast.ts
fail_fast_with_val.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
fail_fast_with_val.ts
file_protocol.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
file_protocol.ts fix(test/bench): accept file protocol module specifier CLI args (#14429) 2022-05-02 15:43:03 -04:00
filter.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
finally_timeout.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
finally_timeout.ts
hello_world.out fix(cli): unset jsxFragmentFactory & jsxFactory options (#15264) 2022-07-21 14:44:18 +05:30
hello_world.ts fix(cli): unset jsxFragmentFactory & jsxFactory options (#15264) 2022-07-21 14:44:18 +05:30
ignore.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
ignore.ts
ignore_permissions.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
ignore_permissions.ts
interval.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
interval.ts feat(cli): close test worker once all tests complete (#11727) 2021-09-04 20:19:26 +02:00
load_unload.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
load_unload.ts fix(test): dispatch load event before tests are run (#11708) 2021-08-15 13:54:44 +02:00
markdown.md fix(cli): explicitly scan for ignore attribute in inline tests (#11647) 2021-08-14 12:33:58 +02:00
markdown.out fix(cli): explicitly scan for ignore attribute in inline tests (#11647) 2021-08-14 12:33:58 +02:00
markdown_full_block_names.md fix(test): typecheck blocks annotated with long js/ts notations (#13785) 2022-03-08 02:10:40 +01:00
markdown_full_block_names.out fix(test): typecheck blocks annotated with long js/ts notations (#13785) 2022-03-08 02:10:40 +01:00
markdown_windows.md fix(test): support typechecking docs with CRLF line endings (#12748) 2021-11-15 09:58:04 -05:00
markdown_windows.out fix(test): support typechecking docs with CRLF line endings (#12748) 2021-11-15 09:58:04 -05:00
markdown_with_comment.md fix(test): skip typechecking for blocks inside HTML comments (#13889) 2022-03-11 02:14:32 +01:00
markdown_with_comment.out fix(test): skip typechecking for blocks inside HTML comments (#13889) 2022-03-11 02:14:32 +01:00
meta.out chore: fix flaky integration::test::meta (#15192) 2022-07-13 11:01:52 -04:00
meta.ts chore: fix flaky integration::test::meta (#15192) 2022-07-13 11:01:52 -04:00
no_check.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
no_check.ts
no_color.ts
no_prompt_by_default.out chore: fix flaky tests checking ms when CI is slow (#18559) 2023-04-06 23:48:07 +02:00
no_prompt_by_default.ts test: update expected test output for 'deno test' (#13882) 2022-03-09 14:48:20 +01:00
no_prompt_with_denied_perms.out chore: fix flaky tests checking ms when CI is slow (#18559) 2023-04-06 23:48:07 +02:00
no_prompt_with_denied_perms.ts test: update expected test output for 'deno test' (#13882) 2022-03-09 14:48:20 +01:00
no_run.out
no_run.ts
non_error_thrown.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
non_error_thrown.ts fix: Format non-error exceptions (#14604) 2022-06-06 20:26:57 +02:00
only.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
only.ts
ops_sanitizer_missing_details.out feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
ops_sanitizer_missing_details.ts chore: update std submodule and its imports (#17408) 2023-01-15 21:09:26 +01:00
ops_sanitizer_multiple_timeout_tests.out feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
ops_sanitizer_multiple_timeout_tests.ts feat(test): improved op sanitizer errors + traces (#13676) 2022-02-16 19:53:17 +01:00
ops_sanitizer_multiple_timeout_tests_no_trace.out feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
ops_sanitizer_nexttick.out chore: update deno_std submodule to 0.178.0 (#18003) 2023-03-03 19:11:10 +00:00
ops_sanitizer_nexttick.ts chore: update deno_std submodule to 0.178.0 (#18003) 2023-03-03 19:11:10 +00:00
ops_sanitizer_timeout_failure.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
ops_sanitizer_timeout_failure.ts fix(test): Improve reliability of deno test's op sanitizer with timers (#12934) 2021-11-30 01:27:30 +01:00
ops_sanitizer_unstable.out fix(test): don't swallow sanitizer errors with permissions (#18550) 2023-04-01 16:20:16 -04:00
ops_sanitizer_unstable.ts fix(test): don't swallow sanitizer errors with permissions (#18550) 2023-04-01 16:20:16 -04:00
overloads.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
overloads.ts feat(test): Add more overloads for "Deno.test" (#12749) 2021-11-23 14:57:51 +01:00
parallel_output.out chore: fix flaky tests checking ms when CI is slow (#18559) 2023-04-06 23:48:07 +02:00
parallel_output.ts fix(test): output parallel test results independently (#15399) 2022-08-04 12:38:40 -04:00
pass.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
pass.ts chore: fix flaky integration::test::pass test (#14571) 2022-05-11 18:05:54 -04:00
quiet.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
quiet.ts
recursive_permissions_pledge.js refactor: remove Deno.core (#16881) 2023-01-24 18:54:10 +01:00
report_error.out fix(test): handle dispatched exceptions from test functions (#18853) 2023-04-27 14:40:03 +02:00
report_error.ts fix(test): handle dispatched exceptions from test functions (#18853) 2023-04-27 14:40:03 +02:00
resource_sanitizer.out feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
resource_sanitizer.ts refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
short-pass-jobs-flag-warning.out fix(test): output parallel test results independently (#15399) 2022-08-04 12:38:40 -04:00
short-pass.out fix(test): output parallel test results independently (#15399) 2022-08-04 12:38:40 -04:00
short-pass.ts feat(cli/test): add DENO_JOBS env variable for test subcommand (#14929) 2022-07-15 10:29:55 -04:00
shuffle.out refactor(cli): move runTests() and runBenchmarks() to rust (#18563) 2023-04-13 19:43:23 +02:00
sigint_with_hanging_test.out feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
sigint_with_hanging_test.ts feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
text.md
text.out refactor(cli): move runTests() and runBenchmarks() to rust (#18563) 2023-04-13 19:43:23 +02:00
uncaught_errors.out fix(test): race condition for cancelled tests (#15233) 2022-08-02 10:55:11 -04:00
uncaught_errors_1.ts fix(test): race condition for cancelled tests (#15233) 2022-08-02 10:55:11 -04:00
uncaught_errors_2.ts feat(test): Represent uncaught errors (#14513) 2022-05-09 11:44:50 +02:00
uncaught_errors_3.ts feat(test): Represent uncaught errors (#14513) 2022-05-09 11:44:50 +02:00
unhandled_rejection.out feat(test): update test summary report (#14629) 2022-06-14 20:51:49 +02:00
unhandled_rejection.ts
unresolved_promise.out feat(core): show unresolved promise origin (#16650) 2022-11-28 23:07:23 +01:00
unresolved_promise.ts feat(cli): close test worker once all tests complete (#11727) 2021-09-04 20:19:26 +02:00