diff options
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 |