chore(create-payload-app): migrate to esm, adjust init-next tests

This commit is contained in:
Elliot DeNolf
2024-03-14 11:12:01 -04:00
parent e3e0f056a9
commit 53a09f4989
19 changed files with 179 additions and 90 deletions

View File

@@ -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