mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
16 lines
516 B
JavaScript
16 lines
516 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)
|
|
})
|
|
})
|