From 2f2ec7ac3076d0cddbd4d77228e197bf514c9b2f Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Sun, 20 Jan 2019 22:14:55 +0330 Subject: [PATCH] fix(test): fallback to config if no config.default --- test/utils/nuxt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/utils/nuxt.js b/test/utils/nuxt.js index 8b715536cb..88bcbda039 100644 --- a/test/utils/nuxt.js +++ b/test/utils/nuxt.js @@ -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 } }