Skip to content

Commit

Permalink
Test caching (+ some renames)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed Apr 29, 2024
1 parent 01b8985 commit b52f9c2
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/specs/install/future_install_local_add_deno/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"cleanDenoDir": true,
"args": "install npm:@denotest/esm-basic",
"output": "install.out"
},
{
"args": "run --cached-only main.js",
"exitCode": 0,
"output": "main.out"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 4 additions & 0 deletions tests/specs/install/future_install_local_add_deno/install.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
⚠️ `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
2 changes: 2 additions & 0 deletions tests/specs/install/future_install_local_add_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.
18 changes: 18 additions & 0 deletions tests/specs/install/future_install_local_deno/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"cleanDenoDir": true,
"args": "install",
"output": "install.out"
},
{
"args": "run --cached-only main.js",
"exitCode": 0,
"output": "main.out"
}
]
}
8 changes: 8 additions & 0 deletions tests/specs/install/future_install_local_deno/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"imports": {
"@std/fs/": "https://deno.land/std@0.224.0/fs/",
"@denotest/esm-basic": "npm:@denotest/esm-basic@^1.0.0",
"@denotest/no_module_graph": "jsr:@denotest/no_module_graph@*",
"test-http": "http://localhost:4545/v1/extensionless"
}
}
11 changes: 11 additions & 0 deletions tests/specs/install/future_install_local_deno/install.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag.
Download http://localhost:4545/v1/extensionless
Download http://localhost:4545/subdir/mod1.ts
Download http://localhost:4545/subdir/subdir2/mod2.ts
Download http://localhost:4545/subdir/print_hello.ts
Download http://127.0.0.1:4250/@denotest/no_module_graph/meta.json
Download http://127.0.0.1:4250/@denotest/no_module_graph/0.2.0_meta.json
Download http://127.0.0.1:4250/@denotest/no_module_graph/0.2.0/mod.ts
Download http://127.0.0.1:4250/@denotest/no_module_graph/0.2.0/TestClass.ts
Download http://localhost:4545/npm/registry/@denotest/esm-basic
Download http://localhost:4545/npm/registry/@denotest/esm-basic/1.0.0.tgz
2 changes: 2 additions & 0 deletions tests/specs/install/future_install_local_deno/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.

0 comments on commit b52f9c2

Please sign in to comment.