mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
16 lines
529 B
JavaScript
16 lines
529 B
JavaScript
import { resolve } from 'path'
|
|
import { Nuxt, Options } from '../../'
|
|
import { version } from '../../package.json'
|
|
|
|
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)
|
|
})
|
|
})
|