Skip to content

test(e2e): add globalSetup to run prisma migrate reset before e2e suite#93

Merged
aquie00t merged 1 commit intomainfrom
test/e2e-global-setup-migration
Apr 23, 2026
Merged

test(e2e): add globalSetup to run prisma migrate reset before e2e suite#93
aquie00t merged 1 commit intomainfrom
test/e2e-global-setup-migration

Conversation

@aquie00t
Copy link
Copy Markdown
Collaborator

Adds tests/e2e/global-setup.ts which loads .env.test and runs prisma migrate reset --force before the test suite starts. This ensures the test database schema is always clean and up-to-date when targeting a separate test database.

What does this PR do?

A brief description of the changes introduced.

Closes #


Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Chore

Checklist

  • My branch follows the naming convention (feature/, fix/, chore/, docs/)
  • My commits follow Conventional Commits
  • I have tested my changes locally
  • I have not introduced any breaking changes
  • I have updated relevant documentation if needed

Adds tests/e2e/global-setup.ts which loads .env.test and runs
prisma migrate reset --force before the test suite starts. This ensures
the test database schema is always clean and up-to-date when targeting a
separate test database.
@aquie00t aquie00t merged commit 75c5457 into main Apr 23, 2026
6 checks passed
@aquie00t aquie00t deleted the test/e2e-global-setup-migration branch April 23, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant