mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
10 lines
335 B
JavaScript
10 lines
335 B
JavaScript
|
import test from 'ava'
|
||
|
import { resolve } from 'path'
|
||
|
import { Options } from '../index'
|
||
|
|
||
|
test('modulesDir uses /node_modules as default if not set', async t => {
|
||
|
const options = Options.from({})
|
||
|
const currentNodeModulesDir = resolve(__dirname, '..', 'node_modules')
|
||
|
t.true(options.modulesDir.includes(currentNodeModulesDir))
|
||
|
})
|