Skip to content

Commit

Permalink
allow wrangler test locally
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Feb 20, 2025
1 parent ca5ce3e commit a2f1895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cloudflare-workers-react-full/.testRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function testRun(cmd: 'npm run dev' | 'npm run preview', { hasStarWarsPage }: {
if (!process.env['CLOUDFLARE_ACCOUNT_ID']) {
expect(process.env['CLOUDFLARE_ACCOUNT_ID']).toBeFalsy()
expect(process.env['CLOUDFLARE_API_TOKEN']).toBeFalsy()
if (isWrangler) {
if ((isCI() || process.env.VITE_ECOSYSTEM_CI) && isWrangler) {
skip(
"SKIPPED: wrangler tests cannot be run. Because missing environment variables `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN`. (This is expected in Pull Requests and Vite's ecosystem CI.)"
)
Expand Down

0 comments on commit a2f1895

Please sign in to comment.