mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
10 lines
361 B
JavaScript
10 lines
361 B
JavaScript
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')
|
|
}
|