chore(create-payload-app): migrate to esm, adjust init-next tests
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
// 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: './',
|
||||
// })
|
||||
|
||||
/** @type {import('@jest/types').Config} */
|
||||
const customJestConfig = {
|
||||
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
||||
globalSetup: './test/jest.setup.ts',
|
||||
@@ -23,5 +17,4 @@ const customJestConfig = {
|
||||
verbose: true,
|
||||
}
|
||||
|
||||
// module.exports = createJestConfig(customJestConfig)
|
||||
export default customJestConfig
|
||||
|
||||
Reference in New Issue
Block a user