summaryrefslogtreecommitdiff
path: root/tests/specs/jsr/import_https_url
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-03 00:49:42 -0400
committerGitHub <noreply@github.com>2024-05-03 10:19:42 +0530
commit3e98ea4e69732d8a659ca0ca61747fe3887ab673 (patch)
tree7cf753a822c6858ebd519d7d7774234c965af801 /tests/specs/jsr/import_https_url
parentb7945a218ee193f6730b4b459e5ab28d13b1f040 (diff)
chore(tests/specs): ability to have sub tests in file (#23667)
Allows writing named sub-tests. These are: 1. Filterable on the command line via `cargo test ...` 2. Run in parallel 3. Use a fresh temp and deno dir for each test (unlike steps)
Diffstat (limited to 'tests/specs/jsr/import_https_url')
-rw-r--r--tests/specs/jsr/import_https_url/__test__.jsonc22
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/specs/jsr/import_https_url/__test__.jsonc b/tests/specs/jsr/import_https_url/__test__.jsonc
index 8ba999d8a..afaaa7d90 100644
--- a/tests/specs/jsr/import_https_url/__test__.jsonc
+++ b/tests/specs/jsr/import_https_url/__test__.jsonc
@@ -1,12 +1,14 @@
{
- "steps": [{
- "args": "run -A analyzable.ts",
- "output": "analyzable.out",
- "exitCode": 1
- }, {
- "cleanDenoDir": true,
- "args": "run -A nonanalyzable.ts",
- "output": "nonanalyzable.out",
- "exitCode": 1
- }]
+ "tests": {
+ "analyzable": {
+ "args": "run -A analyzable.ts",
+ "output": "analyzable.out",
+ "exitCode": 1
+ },
+ "non_analyzable": {
+ "args": "run -A nonanalyzable.ts",
+ "output": "nonanalyzable.out",
+ "exitCode": 1
+ }
+ }
}