Skip to content

Commit 5b9a08d

Browse files
committed
fix shapshots
1 parent 9ca4049 commit 5b9a08d

File tree

4 files changed

+60
-60
lines changed

4 files changed

+60
-60
lines changed

packages/wrangler/src/__tests__/autoconfig/details/confirm-auto-config-details.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe("autoconfig details - confirmAutoConfigDetails()", () => {
3131
});
3232

3333
expect(updatedAutoConfigDetails).toMatchInlineSnapshot(`
34-
{
34+
Object {
3535
"buildCommand": "npm run build",
3636
"configured": false,
3737
"projectPath": "<PROJECT_PATH>",
@@ -68,7 +68,7 @@ describe("autoconfig details - confirmAutoConfigDetails()", () => {
6868
configured: false,
6969
});
7070
expect(updatedAutoConfigDetails).toMatchInlineSnapshot(`
71-
{
71+
Object {
7272
"buildCommand": "npm run app:build",
7373
"configured": false,
7474
"outputDir": "./_public_",
@@ -111,10 +111,10 @@ describe("autoconfig details - confirmAutoConfigDetails()", () => {
111111
configured: false,
112112
});
113113
expect(updatedAutoConfigDetails).toMatchInlineSnapshot(`
114-
{
114+
Object {
115115
"buildCommand": "npm run build",
116116
"configured": false,
117-
"framework": {
117+
"framework": Object {
118118
"configure": [Function],
119119
"configured": false,
120120
"name": "astro",
@@ -139,7 +139,7 @@ describe("autoconfig details - confirmAutoConfigDetails()", () => {
139139
});
140140

141141
expect(updatedAutoConfigDetails).toMatchInlineSnapshot(`
142-
{
142+
Object {
143143
"buildCommand": "npm run build",
144144
"configured": false,
145145
"projectPath": "<PROJECT_PATH>",

packages/wrangler/src/__tests__/autoconfig/run-summary.test.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,25 @@ describe("autoconfig run - buildOperationsSummary()", () => {
3939
"
4040
📄 Create wrangler.jsonc:
4141
{
42-
"$schema": "node_modules/wrangler/config-schema.json",
43-
"name": "worker-name",
44-
"compatibility_date": "2025-01-01",
45-
"observability": {
46-
"enabled": true
42+
\\"$schema\\": \\"node_modules/wrangler/config-schema.json\\",
43+
\\"name\\": \\"worker-name\\",
44+
\\"compatibility_date\\": \\"2025-01-01\\",
45+
\\"observability\\": {
46+
\\"enabled\\": true
4747
}
4848
}
4949
"
5050
`);
5151

5252
expect(summary).toMatchInlineSnapshot(`
53-
{
53+
Object {
5454
"outputDir": "public",
55-
"scripts": {},
56-
"wranglerConfig": {
55+
"scripts": Object {},
56+
"wranglerConfig": Object {
5757
"$schema": "node_modules/wrangler/config-schema.json",
5858
"compatibility_date": "2025-01-01",
5959
"name": "worker-name",
60-
"observability": {
60+
"observability": Object {
6161
"enabled": true,
6262
},
6363
},
@@ -89,17 +89,17 @@ describe("autoconfig run - buildOperationsSummary()", () => {
8989
);
9090

9191
expect(summary).toMatchInlineSnapshot(`
92-
{
92+
Object {
9393
"outputDir": "dist",
94-
"scripts": {
94+
"scripts": Object {
9595
"deploy": "wrangler deploy",
9696
"preview": "wrangler dev",
9797
},
98-
"wranglerConfig": {
98+
"wranglerConfig": Object {
9999
"$schema": "node_modules/wrangler/config-schema.json",
100100
"compatibility_date": "2025-01-01",
101101
"name": "worker-name",
102-
"observability": {
102+
"observability": Object {
103103
"enabled": true,
104104
},
105105
},
@@ -133,17 +133,17 @@ describe("autoconfig run - buildOperationsSummary()", () => {
133133
);
134134

135135
expect(summary).toMatchInlineSnapshot(`
136-
{
136+
Object {
137137
"outputDir": "out",
138-
"scripts": {
138+
"scripts": Object {
139139
"deploy": "wrangler deploy",
140140
"preview": "wrangler dev",
141141
},
142-
"wranglerConfig": {
142+
"wranglerConfig": Object {
143143
"$schema": "node_modules/wrangler/config-schema.json",
144144
"compatibility_date": "2025-01-01",
145145
"name": "worker-name",
146-
"observability": {
146+
"observability": Object {
147147
"enabled": true,
148148
},
149149
},

packages/wrangler/src/__tests__/autoconfig/run.test.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -187,19 +187,19 @@ describe("autoconfig (deploy)", () => {
187187
- wrangler (devDependency)
188188
189189
📝 Update package.json scripts:
190-
- "deploy": "echo 'built' > build.txt && wrangler deploy"
191-
- "preview": "echo 'built' > build.txt && wrangler dev"
190+
- \\"deploy\\": \\"echo 'built' > build.txt && wrangler deploy\\"
191+
- \\"preview\\": \\"echo 'built' > build.txt && wrangler dev\\"
192192
193193
📄 Create wrangler.jsonc:
194194
{
195-
"$schema": "node_modules/wrangler/config-schema.json",
196-
"name": "my-worker",
197-
"compatibility_date": "2000-01-01",
198-
"observability": {
199-
"enabled": true
195+
\\"$schema\\": \\"node_modules/wrangler/config-schema.json\\",
196+
\\"name\\": \\"my-worker\\",
197+
\\"compatibility_date\\": \\"2000-01-01\\",
198+
\\"observability\\": {
199+
\\"enabled\\": true
200200
},
201-
"assets": {
202-
"directory": "dist"
201+
\\"assets\\": {
202+
\\"directory\\": \\"dist\\"
203203
}
204204
}
205205
@@ -210,14 +210,14 @@ describe("autoconfig (deploy)", () => {
210210

211211
expect(readFileSync("wrangler.jsonc")).toMatchInlineSnapshot(`
212212
"{
213-
"$schema": "node_modules/wrangler/config-schema.json",
214-
"name": "my-worker",
215-
"compatibility_date": "2000-01-01",
216-
"observability": {
217-
"enabled": true
213+
\\"$schema\\": \\"node_modules/wrangler/config-schema.json\\",
214+
\\"name\\": \\"my-worker\\",
215+
\\"compatibility_date\\": \\"2000-01-01\\",
216+
\\"observability\\": {
217+
\\"enabled\\": true
218218
},
219-
"assets": {
220-
"directory": "dist"
219+
\\"assets\\": {
220+
\\"directory\\": \\"dist\\"
221221
}
222222
}"
223223
`);
@@ -288,29 +288,29 @@ describe("autoconfig (deploy)", () => {
288288
289289
📄 Create wrangler.jsonc:
290290
{
291-
"$schema": "node_modules/wrangler/config-schema.json",
292-
"name": "edited-worker-name",
293-
"compatibility_date": "2000-01-01",
294-
"observability": {
295-
"enabled": true
291+
\\"$schema\\": \\"node_modules/wrangler/config-schema.json\\",
292+
\\"name\\": \\"edited-worker-name\\",
293+
\\"compatibility_date\\": \\"2000-01-01\\",
294+
\\"observability\\": {
295+
\\"enabled\\": true
296296
},
297-
"assets": {
298-
"directory": "dist"
297+
\\"assets\\": {
298+
\\"directory\\": \\"dist\\"
299299
}
300300
}
301301
"
302302
`);
303303

304304
expect(readFileSync("wrangler.jsonc")).toMatchInlineSnapshot(`
305305
"{
306-
"$schema": "node_modules/wrangler/config-schema.json",
307-
"name": "edited-worker-name",
308-
"compatibility_date": "2000-01-01",
309-
"observability": {
310-
"enabled": true
306+
\\"$schema\\": \\"node_modules/wrangler/config-schema.json\\",
307+
\\"name\\": \\"edited-worker-name\\",
308+
\\"compatibility_date\\": \\"2000-01-01\\",
309+
\\"observability\\": {
310+
\\"enabled\\": true
311311
},
312-
"assets": {
313-
"directory": "dist"
312+
\\"assets\\": {
313+
\\"directory\\": \\"dist\\"
314314
}
315315
}"
316316
`);

packages/wrangler/src/__tests__/setup.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("wrangler setup", () => {
3535
-v, --version Show version number [boolean]
3636
3737
OPTIONS
38-
-y, --yes Answer "yes" to any prompts for configuring your project [boolean] [default: false]
38+
-y, --yes Answer \\"yes\\" to any prompts for configuring your project [boolean] [default: false]
3939
--build Run your project's build command once it has been configured [boolean] [default: false]
4040
--dry-run Runs the command without applying any filesystem modifications [boolean]"
4141
`);
@@ -168,14 +168,14 @@ describe("wrangler setup", () => {
168168
169169
📄 Create wrangler.jsonc:
170170
{
171-
"$schema": "node_modules/wrangler/config-schema.json",
172-
"name": "<WORKER_NAME>",
173-
"compatibility_date": "yyyy-mm-dd",
174-
"observability": {
175-
"enabled": true
171+
\\"$schema\\": \\"node_modules/wrangler/config-schema.json\\",
172+
\\"name\\": \\"<WORKER_NAME>\\",
173+
\\"compatibility_date\\": \\"yyyy-mm-dd\\",
174+
\\"observability\\": {
175+
\\"enabled\\": true
176176
},
177-
"assets": {
178-
"directory": "<DIR>"
177+
\\"assets\\": {
178+
\\"directory\\": \\"<DIR>\\"
179179
}
180180
}
181181

0 commit comments

Comments
 (0)