Nuxt/packages/cli/test/fixtures/nuxt.async-config.js

10 lines
361 B
JavaScript
Raw Normal View History

import { resolve } from 'path'
export default () => {
// delete cache is needed because otherwise Jest will return the same
// object reference as the previous test and then mode will not be
// set correctly. jest.resetModules doesnt work for some reason
delete require.cache[resolve(__dirname, 'nuxt.config.js')]
return import('./nuxt.config.js')
}