-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for
deno install npm:<pkg>
under DENO_FUTURE
- Loading branch information
1 parent
4607b93
commit e066b79
Showing
5 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
tests/specs/install/future_install_local_npm/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"tempDir": true, | ||
"envs": { | ||
"DENO_FUTURE": "1" | ||
}, | ||
"steps": [ | ||
{ | ||
"cleanDenoDir": true, | ||
"args": "install npm:@denotest/esm-basic", | ||
"output": "install.out" | ||
}, | ||
{ | ||
"cleanDenoDir": true, | ||
"args": "run --cached-only main.js", | ||
"exitCode": 0, | ||
"output": "main.out" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag. | ||
Add @denotest/esm-basic - npm:@denotest/esm-basic@^1.0.0 | ||
Download http://localhost:4545/npm/registry/@denotest/esm-basic | ||
Download http://localhost:4545/npm/registry/@denotest/esm-basic/1.0.0.tgz | ||
Initialize @denotest/esm-basic@1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { setValue } from "@denotest/esm-basic"; | ||
setValue(5); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"dependencies": {} | ||
} |