chore: pulls mongodb from main

This commit is contained in:
James
2024-02-16 11:27:23 -05:00
parent abf0f7111d
commit 12c5100bc8
28 changed files with 567 additions and 507 deletions

View File

@@ -1,9 +1,9 @@
const nextJest = require('next/jest.js')
// const nextJest = require('next/jest.js')
const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: './',
})
// const createJestConfig = nextJest({
// // Provide the path to your Next.js app to load next.config.js and .env files in your test environment
// dir: './',
// })
const customJestConfig = {
globalSetup: './test/jest.setup.ts',
@@ -12,10 +12,14 @@ const customJestConfig = {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/packages/payload/src/bundlers/mocks/fileMock.js',
},
// testEnvironment: 'node',
testEnvironment: 'node',
testMatch: ['<rootDir>/packages/payload/src/**/*.spec.ts', '<rootDir>/test/**/*int.spec.ts'],
testTimeout: 90000,
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest'],
},
verbose: true,
}
module.exports = createJestConfig(customJestConfig)
// module.exports = createJestConfig(customJestConfig)
module.exports = customJestConfig