Skip to content

Commit

Permalink
chore: new e2e tests (#324)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Bolda <[email protected]>
  • Loading branch information
Aslemammad and jbolda authored Feb 19, 2025
1 parent 63391f6 commit 86cec07
Show file tree
Hide file tree
Showing 25 changed files with 4,183 additions and 1,949 deletions.
2 changes: 1 addition & 1 deletion .eslintcache

Large diffs are not rendered by default.

24 changes: 9 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,14 @@ jobs:
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm tsx script/ci.ts
working-directory: ./packages/backend
env:
NITRO_WEBHOOK_SECRET: ${{ secrets.NITRO_WEBHOOK_SECRET }}
NITRO_APP_ID: ${{ secrets.NITRO_APP_ID }}
NITRO_PRIVATE_KEY: ${{ secrets.NITRO_PRIVATE_KEY }}
NITRO_RM_STALE_KEY: ${{ secrets.NITRO_RM_STALE_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: pnpm build
# - run: pnpm tsx script/ci.ts
# working-directory: ./packages/backend
# env:
# NITRO_WEBHOOK_SECRET: ${{ secrets.NITRO_WEBHOOK_SECRET }}
# NITRO_APP_ID: ${{ secrets.NITRO_APP_ID }}
# NITRO_PRIVATE_KEY: ${{ secrets.NITRO_PRIVATE_KEY }}
# NITRO_RM_STALE_KEY: ${{ secrets.NITRO_RM_STALE_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: pnpm test
env:
NITRO_WEBHOOK_SECRET: ${{ secrets.NITRO_WEBHOOK_SECRET }}
NITRO_APP_ID: ${{ secrets.NITRO_APP_ID }}
NITRO_PRIVATE_KEY: ${{ secrets.NITRO_PRIVATE_KEY }}
NITRO_RM_STALE_KEY: ${{ secrets.NITRO_RM_STALE_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
512 changes: 0 additions & 512 deletions e2e/fixtures/pr.pull_request.json

This file was deleted.

377 changes: 0 additions & 377 deletions e2e/fixtures/pr.workflow_run.completed.json

This file was deleted.

377 changes: 0 additions & 377 deletions e2e/fixtures/pr.workflow_run.requested.json

This file was deleted.

377 changes: 0 additions & 377 deletions e2e/fixtures/workflow_run.in_progress.json

This file was deleted.

258 changes: 0 additions & 258 deletions e2e/publish.test.mts

This file was deleted.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint:fix": "prettier --write --cache .",
"lint:types": "pnpm -r --parallel run typecheck",
"release": "tsx script/release.ts",
"test": "tsx e2e/publish.test.mts",
"test": "pnpm --filter=backend test",
"test:unit": "vitest run"
},
"keywords": [],
Expand All @@ -25,6 +25,7 @@
"devDependencies": {
"@jsdevtools/ez-spawn": "^3.0.4",
"@types/node": "^20.14.2",
"@simulacrum/github-api-simulator": "^0.5.3",
"@vitejs/release-scripts": "^1.3.1",
"cross-env": "^7.0.3",
"esbuild": "^0.20.2",
Expand All @@ -47,6 +48,7 @@
}
},
"dependencies": {
"@cloudflare/vitest-pool-workers": "^0.6.8",
"wrangler": "^3.57.1"
},
"packageManager": "[email protected]+sha256.7f63001edc077f1cff96cacba901f350796287a2800dfa83fe898f94183e4f5f"
Expand Down
Loading

0 comments on commit 86cec07

Please sign in to comment.