Skip to content

Commit

Permalink
Setup E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusSanchez committed Jan 25, 2024
1 parent 49fb680 commit 409641a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
run-e2e-tests:
name: Run E2E Tests
runs-on: ubuntu-latest
env:
DATABASE_URL: "postgresql://docker:docker@localhost:8080/orange-db?schema=public"

services:
postgres:
Expand All @@ -25,13 +23,12 @@ jobs:
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'

- run: pnpm install
- run: pnpm prisma generate

- run: pnpm run pretest:e2e
- run: pnpm run test:e2e


env:
DATABASE_URL: "postgresql://docker:docker@localhost:8080/orange-db?schema=public"

2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
environmentMatchGlobs: [['src/controller/**', 'prisma']],
environmentMatchGlobs: [['src/controller/**', 'prisma/vitest-environment-prisma']],
},
})

0 comments on commit 409641a

Please sign in to comment.