From 394a620da35f481be5d623568650dd60c96c5331 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Fri, 13 Sep 2024 19:52:48 +1000 Subject: [PATCH] chore: enable `specs::run::workspaces::explicit_import_map` test (#25611) Towards #25241 --- .../explicit_import_map/__test__.jsonc | 16 +++++++++++----- .../workspaces/explicit_import_map/install.out | 3 +++ .../run/workspaces/explicit_import_map/main.out | 1 - 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 tests/specs/run/workspaces/explicit_import_map/install.out diff --git a/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc b/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc index b13fde73af..e9bb0442be 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 0000000000..51d2fb9a28 --- /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 c420c18532..ce01362503 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