=test_update_homework_tests_and_work_log
Some checks failed
CI / build-deploy (push) Has been cancelled
Some checks failed
CI / build-deploy (push) Has been cancelled
This commit is contained in:
12
tests/setup/integration.setup.ts
Normal file
12
tests/setup/integration.setup.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { afterEach, beforeAll, vi } from "vitest"
|
||||
|
||||
beforeAll(() => {
|
||||
process.env.SKIP_ENV_VALIDATION = "1"
|
||||
process.env.NEXTAUTH_SECRET = process.env.NEXTAUTH_SECRET ?? "test-nextauth-secret"
|
||||
process.env.NEXTAUTH_URL = process.env.NEXTAUTH_URL ?? "http://127.0.0.1:3000"
|
||||
process.env.DATABASE_URL = process.env.DATABASE_URL ?? "mysql://test:test@127.0.0.1:3306/test_db"
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
vi.clearAllMocks()
|
||||
})
|
||||
Reference in New Issue
Block a user