chore: sets env vars for tests in globalSetup

This commit is contained in:
James
2024-04-01 15:29:27 -04:00
parent a0f6018469
commit 4befd2e4ff
4 changed files with 20 additions and 4 deletions

7
test/setup.ts Normal file
View File

@@ -0,0 +1,7 @@
// eslint-disable-next-line no-restricted-exports
export default () => {
// @ts-expect-error
process.env.NODE_ENV = 'test'
process.env.PAYLOAD_DROP_DATABASE = 'true'
process.env.NODE_OPTIONS = '--no-deprecation'
}