Skip to content

Commit d9373a5

Browse files
author
cod1k
committed
Add .wrangler cleanup and update scripts in Cloudflare Workers
Introduce a `.wrangler` directory cleanup step using a new `clean:state` script. Ensure both `test:prod` and `test:dev` scripts clean state before execution to avoid stale data issues. Additionally, update `.gitignore` to exclude `.wrangler`.
1 parent 209f6aa commit d9373a5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.wrangler

dev-packages/e2e-tests/test-applications/cloudflare-workers/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
"build": "wrangler deploy --dry-run",
99
"test": "vitest --run",
1010
"typecheck": "tsc --noEmit",
11+
"clean:state": "rimraf .wrangler",
1112
"cf-typegen": "wrangler types",
1213
"test:build": "pnpm install && pnpm build",
1314
"test:assert": "pnpm test:dev && pnpm test:prod",
14-
"test:prod": "TEST_ENV=production playwright test",
15-
"test:dev": "TEST_ENV=development playwright test"
15+
"test:prod": "pnpm clean:state && TEST_ENV=production playwright test",
16+
"test:dev": "pnpm clean:state && TEST_ENV=development playwright test"
1617
},
1718
"dependencies": {
1819
"@sentry/cloudflare": "latest || *"

0 commit comments

Comments
 (0)