chore(create-payload-app): ESM test fix

This commit is contained in:
Elliot DeNolf
2024-03-27 09:08:09 -04:00
parent ff55cfa001
commit e829650cd9

View File

@@ -2,10 +2,14 @@ import fse from 'fs-extra'
import path from 'path'
import type { CliArgs, DbType, ProjectTemplate } from '../types.js'
import { createProject } from './create-project.js'
import { fileURLToPath } from 'node:url'
import { dbReplacements } from './packages.js'
import { getValidTemplates } from './templates.js'
const projectDir = path.resolve(__dirname, './tmp')
const filename = fileURLToPath(import.meta.url)
const dirname = path.dirname(filename)
const projectDir = path.resolve(dirname, './tmp')
describe('createProject', () => {
beforeAll(() => {
console.log = jest.fn()