Skip to content

Commit 6c956c3

Browse files
committed
add not_exists test
1 parent 6277f9a commit 6c956c3

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# mod.ts
2+
import source module1 from "./nonexistent.wasm";
3+
const module2 = await import.source("./nonexistent.wasm");
4+
5+
# output
6+
{
7+
"roots": [
8+
"file:///mod.ts"
9+
],
10+
"modules": [
11+
{
12+
"kind": "esm",
13+
"dependencies": [
14+
{
15+
"specifier": "./nonexistent.wasm",
16+
"code": {
17+
"specifier": "file:///nonexistent.wasm",
18+
"resolutionMode": "import",
19+
"span": {
20+
"start": {
21+
"line": 0,
22+
"character": 27
23+
},
24+
"end": {
25+
"line": 0,
26+
"character": 47
27+
}
28+
}
29+
}
30+
}
31+
],
32+
"size": 108,
33+
"mediaType": "TypeScript",
34+
"specifier": "file:///mod.ts"
35+
},
36+
{
37+
"specifier": "file:///nonexistent.wasm",
38+
"error": "Module not found \"file:///nonexistent.wasm\"."
39+
}
40+
],
41+
"redirects": {}
42+
}

0 commit comments

Comments
 (0)