mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(test-utils): allow overriding nitro options (#19872)
This commit is contained in:
parent
824d296c7b
commit
dc5982d9e0
@ -1,5 +1,6 @@
|
||||
import { existsSync, promises as fsp } from 'node:fs'
|
||||
import { resolve } from 'node:path'
|
||||
import { defu } from 'defu'
|
||||
import * as _kit from '@nuxt/kit'
|
||||
import { useTestContext } from './context'
|
||||
|
||||
@ -43,7 +44,7 @@ export async function loadFixture () {
|
||||
if (!ctx.options.dev) {
|
||||
const randomId = Math.random().toString(36).slice(2, 8)
|
||||
const buildDir = resolve(ctx.options.rootDir, '.nuxt', randomId)
|
||||
Object.assign(ctx.options.nuxtConfig, {
|
||||
ctx.options.nuxtConfig = defu(ctx.options.nuxtConfig, {
|
||||
buildDir,
|
||||
nitro: {
|
||||
output: {
|
||||
|
Loading…
Reference in New Issue
Block a user