Skip to content

Commit

Permalink
force test node_env
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-adams committed Aug 28, 2024
1 parent d15093b commit 27cc4ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/setup-jest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import initializeDb from './src/lib/db'

beforeAll(async () => {
// avoid conflict in dev container
process.env.NODE_ENV = 'test';

await initializeDb()
})

0 comments on commit 27cc4ca

Please sign in to comment.