Skip to content

Commit f31b899

Browse files
authored
test(cloudflare): Add typechecks for cloudflare-worker e2e test (#18321)
This PR is a result of #18302. This ensures that the types are checked throughout the development of the Cloudflare SDK
1 parent ee4146e commit f31b899

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"typecheck": "tsc --noEmit",
1111
"cf-typegen": "wrangler types",
1212
"test:build": "pnpm install && pnpm build",
13-
"test:assert": "pnpm test:dev && pnpm test:prod",
13+
"test:assert": "pnpm typecheck && pnpm test:dev && pnpm test:prod",
1414
"test:prod": "TEST_ENV=production playwright test",
1515
"test:dev": "TEST_ENV=development playwright test"
1616
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"compilerOptions": {
44
"types": ["@cloudflare/vitest-pool-workers"]
55
},
6-
"include": ["./**/*.ts", "../worker-configuration.d.ts"],
6+
"include": ["./**/*.ts"],
77
"exclude": []
88
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636

3737
/* Skip type checking all .d.ts files. */
3838
"skipLibCheck": true,
39-
"types": ["./worker-configuration.d.ts"]
39+
"types": ["@cloudflare/workers-types/experimental"]
4040
},
4141
"exclude": ["test"],
42-
"include": ["worker-configuration.d.ts", "src/**/*.ts"]
42+
"include": ["src/**/*.ts"]
4343
}

0 commit comments

Comments
 (0)