mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-22 09:15:54 +00:00
test: benchmark minimal fixture instead (#31174)
This commit is contained in:
parent
25f50df0f1
commit
98b8c9371f
@ -6,7 +6,7 @@ import { withoutTrailingSlash } from 'ufo'
|
||||
import { build, loadNuxt } from 'nuxt'
|
||||
import type { Nuxt } from '@nuxt/schema'
|
||||
|
||||
const basicTestFixtureDir = withoutTrailingSlash(normalize(fileURLToPath(new URL('../../../test/fixtures/basic', import.meta.url))))
|
||||
const basicTestFixtureDir = withoutTrailingSlash(normalize(fileURLToPath(new URL('../../../test/fixtures/minimal', import.meta.url))))
|
||||
|
||||
describe('build', () => {
|
||||
let nuxt: Nuxt
|
||||
@ -30,7 +30,7 @@ describe('build', () => {
|
||||
|
||||
afterAll(() => nuxt?.close())
|
||||
|
||||
bench('initial production build in the basic test fixture', async () => {
|
||||
bench('initial production build in the minimal test fixture', async () => {
|
||||
await build(nuxt).catch((e) => {
|
||||
if (!e?.toString().includes('bypass nitro build')) {
|
||||
throw e
|
||||
|
Loading…
Reference in New Issue
Block a user