mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
ef7a42649d
nuxt-start and nuxt/legacy are also coming!
15 lines
495 B
JavaScript
15 lines
495 B
JavaScript
import { resolve } from 'path'
|
|
import { Nuxt, Options, version } from '../utils'
|
|
|
|
describe('basic config defaults', () => {
|
|
test('Nuxt.version is same as package', () => {
|
|
expect(Nuxt.version).toBe(version)
|
|
})
|
|
|
|
test('modulesDir uses /node_modules as default if not set', async () => {
|
|
const options = Options.from({})
|
|
const currentNodeModulesDir = resolve(__dirname, '..', '..', 'node_modules')
|
|
expect(options.modulesDir.includes(currentNodeModulesDir)).toBe(true)
|
|
})
|
|
})
|