mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
refactor: separate multiple folders in path.resolve (#3670)
This commit is contained in:
parent
7ced73ebdb
commit
b4ab2778cb
@ -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 : {}
|
||||
|
Loading…
Reference in New Issue
Block a user