mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor(tests): migrate npm itests to specs (#25764)
Towards https://github.com/denoland/deno/issues/25241
This commit is contained in:
parent
3e053f8f06
commit
94bdebe399
25 changed files with 196 additions and 39 deletions
14
tests/specs/npm/local_dir_resolves_symlinks/__test__.jsonc
Normal file
14
tests/specs/npm/local_dir_resolves_symlinks/__test__.jsonc
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"tempDir": true,
|
||||
"steps": [
|
||||
{
|
||||
"args": "install",
|
||||
"output": "install.out"
|
||||
},
|
||||
{
|
||||
"args": "run -A index.js",
|
||||
"output": "index.out",
|
||||
"exitCode": 0
|
||||
}
|
||||
]
|
||||
}
|
3
tests/specs/npm/local_dir_resolves_symlinks/index.js
Normal file
3
tests/specs/npm/local_dir_resolves_symlinks/index.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import * as d from "define-properties";
|
||||
|
||||
console.log(typeof d.default === "function", "it works");
|
1
tests/specs/npm/local_dir_resolves_symlinks/index.out
Normal file
1
tests/specs/npm/local_dir_resolves_symlinks/index.out
Normal file
|
@ -0,0 +1 @@
|
|||
true it works
|
23
tests/specs/npm/local_dir_resolves_symlinks/install.out
Normal file
23
tests/specs/npm/local_dir_resolves_symlinks/install.out
Normal file
|
@ -0,0 +1,23 @@
|
|||
[UNORDERED_START]
|
||||
Download http://localhost:4260/define-properties
|
||||
Download http://localhost:4260/has-property-descriptors
|
||||
Download http://localhost:4260/object-keys
|
||||
Download http://localhost:4260/get-intrinsic
|
||||
Download http://localhost:4260/function-bind
|
||||
Download http://localhost:4260/has
|
||||
Download http://localhost:4260/has-symbols
|
||||
Download http://localhost:4260/define-properties/define-properties-1.2.0.tgz
|
||||
Download http://localhost:4260/has-property-descriptors/has-property-descriptors-1.0.0.tgz
|
||||
Download http://localhost:4260/object-keys/object-keys-1.1.1.tgz
|
||||
Download http://localhost:4260/get-intrinsic/get-intrinsic-1.2.0.tgz
|
||||
Download http://localhost:4260/has-symbols/has-symbols-1.0.3.tgz
|
||||
Download http://localhost:4260/has/has-1.0.3.tgz
|
||||
Download http://localhost:4260/function-bind/function-bind-1.1.1.tgz
|
||||
Initialize has@1.0.3
|
||||
Initialize define-properties@1.2.0
|
||||
Initialize has-property-descriptors@1.0.0
|
||||
Initialize object-keys@1.1.1
|
||||
Initialize get-intrinsic@1.2.0
|
||||
Initialize function-bind@1.1.1
|
||||
Initialize has-symbols@1.0.3
|
||||
[UNORDERED_END]
|
7
tests/specs/npm/local_dir_resolves_symlinks/package.json
Normal file
7
tests/specs/npm/local_dir_resolves_symlinks/package.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"name": "foo",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"define-properties": "^1.2.0"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue