Skip to content

Commit

Permalink
Add test for deno install npm:<pkg> under DENO_FUTURE
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed Apr 29, 2024
1 parent 4607b93 commit e066b79
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/specs/install/future_install_local_npm/__test__.jsonc
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"
}
]
}
5 changes: 5 additions & 0 deletions tests/specs/install/future_install_local_npm/install.out
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
2 changes: 2 additions & 0 deletions tests/specs/install/future_install_local_npm/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { setValue } from "@denotest/esm-basic";
setValue(5);
Empty file.
3 changes: 3 additions & 0 deletions tests/specs/install/future_install_local_npm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dependencies": {}
}

0 comments on commit e066b79

Please sign in to comment.