Skip to content

Commit 3aa9ab9

Browse files
committed
update snapshot
1 parent 5b9e9de commit 3aa9ab9

2 files changed

Lines changed: 8 additions & 153 deletions

File tree

tests/entry_point_check/entry_point_many_2/_entry_point_many_2.test.mjs/0_basic/0_basic.md

Lines changed: 3 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -1,158 +1,12 @@
1-
# [0_basic](../../entry_point_many_2.test.mjs#L21)
1+
# [0_basic](../../entry_point_many_2.test.mjs#L22)
22

33
```js
44
run()
55
```
66

7-
# 1/2 write 11 files into "./git_ignored/"
8-
<details>
9-
<summary>details</summary>
7+
# 1/2 write 2 files into "./git_ignored/"
108

11-
## node_modules/foo/a.js
12-
```js
13-
14-
```
15-
16-
## node_modules/foo/b.js
17-
```js
18-
19-
```
20-
21-
## node_modules/foo/foo.js
22-
```js
23-
24-
```
25-
26-
## node_modules/foo/package.json
27-
```json
28-
{
29-
"name": "foo",
30-
"private": true,
31-
"exports": {
32-
".": "./foo.js",
33-
"./a": "./a.js",
34-
"./b": "./b.js"
35-
}
36-
}
37-
```
38-
39-
## about.html
40-
```html
41-
<!DOCTYPE html>
42-
<html>
43-
<head>
44-
<title>Title</title>
45-
<meta charset="utf-8">
46-
<link rel="icon" href="data:,">
47-
<script type="importmap" jsenv-injected-by="@jsenv/importmap-node-module">
48-
{
49-
"imports": {},
50-
"scopes": {}
51-
}
52-
</script>
53-
</head>
54-
55-
<body>
56-
<script type="module" src="./about.js"></script>
57-
</body>
58-
</html>
59-
```
60-
61-
## about.js
62-
```js
63-
import "foo";
64-
import "foo/b";
65-
66-
```
67-
68-
## index.html
69-
```html
70-
<!DOCTYPE html>
71-
<html>
72-
<head>
73-
<title>Title</title>
74-
<meta charset="utf-8">
75-
<link rel="icon" href="data:,">
76-
</head>
77-
78-
<body>
79-
<script type="module" src="./index.js"></script>
80-
</body>
81-
</html>
82-
```
83-
84-
## index.js
85-
```js
86-
import "foo";
87-
import "foo/a";
88-
89-
```
90-
91-
## package.json
92-
```json
93-
{
94-
"name": "root",
95-
"private": true,
96-
"type": "module",
97-
"dependencies": {
98-
"foo": "./node_modules/foo/"
99-
}
100-
}
101-
```
102-
103-
## index.html
104-
105-
```
106-
<!DOCTYPE html>
107-
<html>
108-
<head>
109-
<title>Title</title>
110-
<meta charset="utf-8">
111-
<link rel="icon" href="data:,">
112-
<script type="importmap" jsenv-injected-by="@jsenv/importmap-node-module">
113-
{
114-
"imports": {
115-
"foo/a": "./node_modules/foo/a.js",
116-
"foo": "./node_modules/foo/foo.js"
117-
},
118-
"scopes": {}
119-
}
120-
</script>
121-
</head>
122-
123-
<body>
124-
<script type="module" src="./index.js"></script>
125-
</body>
126-
```
127-
see [git_ignored/index_1.html](git_ignored/index_1.html) for more
128-
129-
## about.html
130-
131-
```
132-
<!DOCTYPE html>
133-
<html>
134-
<head>
135-
<title>Title</title>
136-
<meta charset="utf-8">
137-
<link rel="icon" href="data:,">
138-
<script type="importmap" jsenv-injected-by="@jsenv/importmap-node-module">
139-
{
140-
"imports": {
141-
"foo/b": "./node_modules/foo/b.js",
142-
"foo": "./node_modules/foo/foo.js"
143-
},
144-
"scopes": {}
145-
}
146-
</script>
147-
</head>
148-
149-
<body>
150-
<script type="module" src="./about.js"></script>
151-
</body>
152-
```
153-
see [git_ignored/about_1.html](git_ignored/about_1.html) for more
154-
155-
</details>
9+
see [./git_ignored/](./git_ignored/)
15610

15711
# 2/2 resolve
15812

tests/entry_point_check/entry_point_many_2/entry_point_many_2.test.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import { replaceFileStructureSync } from "@jsenv/filesystem";
22
import { writeImportmaps } from "@jsenv/importmap-node-module";
33
import { snapshotWriteImportmaps } from "@jsenv/importmap-node-module/tests/snapshot_write_importmaps.js";
44

5+
replaceFileStructureSync({
6+
from: new URL("./fixtures/", import.meta.url),
7+
to: new URL("./git_ignored/", import.meta.url),
8+
});
9+
510
const run = async () => {
6-
replaceFileStructureSync({
7-
from: new URL("./fixtures/", import.meta.url),
8-
to: new URL("./git_ignored/", import.meta.url),
9-
});
1011
await writeImportmaps({
1112
logLevel: "warn",
1213
directoryUrl: new URL("./git_ignored/", import.meta.url),

0 commit comments

Comments
 (0)