mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(test): fallback to config if no config.default
This commit is contained in:
parent
5b66afc23a
commit
2f2ec7ac30
@ -19,7 +19,8 @@ export const loadFixture = async function (fixture, overrides) {
|
||||
for (const ext of ['ts', 'js']) {
|
||||
const configFile = path.resolve(rootDir, `nuxt.config.${ext}`)
|
||||
if (fs.existsSync(configFile)) {
|
||||
config = (await import(`../fixtures/${fixture}/nuxt.config`)).default
|
||||
config = await import(`../fixtures/${fixture}/nuxt.config`)
|
||||
config = config.default || config
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user