chore: uses globalSetup for starting memory db

This commit is contained in:
James
2024-04-02 09:44:55 -04:00
parent 34fe6182c8
commit 73a555788d
10 changed files with 73 additions and 51 deletions

View File

@@ -1,3 +1,9 @@
import path from 'path'
import { fileURLToPath } from 'url'
const filename = fileURLToPath(import.meta.url)
const dirname = path.dirname(filename)
/** @type {import('jest').Config} */
const customJestConfig = {
extensionsToTreatAsEsm: ['.ts', '.tsx'],
@@ -10,6 +16,7 @@ const customJestConfig = {
},
reporters: ['default', ['github-actions', { silent: false }], 'summary'],
testEnvironment: 'node',
globalSetup: path.resolve(dirname, 'setup.ts'),
testMatch: ['<rootDir>/**/*int.spec.ts'],
testTimeout: 90000,
transform: {