From b4ab2778cbaf755fc16c132be1c937ee85d8ade0 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 9 Aug 2018 23:08:42 +0100 Subject: [PATCH] refactor: separate multiple folders in path.resolve (#3670) --- test/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils/index.js b/test/utils/index.js index 65df9ab3c1..709e8f2e1a 100644 --- a/test/utils/index.js +++ b/test/utils/index.js @@ -21,7 +21,7 @@ export const Generator = Dist.Generator const requireModule = esm(module, {}) export const loadFixture = function loadFixture(fixture, overrides) { - const rootDir = path.resolve(__dirname, '../fixtures/' + fixture) + const rootDir = path.resolve(__dirname, '..', 'fixtures', fixture) const configFile = path.resolve(rootDir, 'nuxt.config.js') const config = fs.existsSync(configFile) ? requireModule(configFile).default : {}