diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-13 19:52:48 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 11:52:48 +0200 |
commit | 394a620da35f481be5d623568650dd60c96c5331 (patch) | |
tree | 5c04d8dbc877d8a3193e185ab774203dcd17d3d9 /tests | |
parent | 606b7b17c6b5eccae9950eeb11d30e63e544b49d (diff) |
chore: enable `specs::run::workspaces::explicit_import_map` test (#25611)
Towards #25241
Diffstat (limited to 'tests')
3 files changed, 14 insertions, 6 deletions
diff --git a/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc b/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc index b13fde73a..e9bb0442b 100644 --- a/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc +++ b/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc @@ -1,7 +1,13 @@ { - // TODO(2.0): update the test, should probably call install first - "ignore": true, - "args": "run -A --import-map=./import_map.json main.ts", - "output": "main.out", - "tempDir": true + "tempDir": true, + "steps": [ + { + "args": "install --import-map=./import_map.json", + "output": "install.out" + }, + { + "args": "run -A --import-map=./import_map.json main.ts", + "output": "main.out" + } + ] } diff --git a/tests/specs/run/workspaces/explicit_import_map/install.out b/tests/specs/run/workspaces/explicit_import_map/install.out new file mode 100644 index 000000000..51d2fb9a2 --- /dev/null +++ b/tests/specs/run/workspaces/explicit_import_map/install.out @@ -0,0 +1,3 @@ +Download http://localhost:4260/chalk +Download http://localhost:4260/chalk/chalk-5.0.1.tgz +Initialize chalk@5.0.1 diff --git a/tests/specs/run/workspaces/explicit_import_map/main.out b/tests/specs/run/workspaces/explicit_import_map/main.out index c420c1853..ce0136250 100644 --- a/tests/specs/run/workspaces/explicit_import_map/main.out +++ b/tests/specs/run/workspaces/explicit_import_map/main.out @@ -1,2 +1 @@ -[WILDCARD] hello |