Nuxt/packages/config/test/load.test.js
2024-06-14 12:37:32 +01:00

10 lines
291 B
JavaScript

import { resolve } from 'path'
import { loadNuxtConfig } from '../src/load'
describe('config: load', () => {
test('load local nuxtrc', async () => {
const config = await loadNuxtConfig({ rootDir: resolve(__dirname, 'fixtures/nuxtrc') })
expect(config.rc.works).toBe(true)
})
})