test: remove sourcemaps from minimal test (#19730)

This commit is contained in:
Daniel Roe 2023-03-16 07:34:22 +00:00 committed by GitHub
parent 279088d5ab
commit 5d9d92c4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -40,10 +40,10 @@ describe.skipIf(isWindows)('minimal nuxt application', () => {
it('default server bundle size', async () => { it('default server bundle size', async () => {
stats.server = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir) stats.server = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
expect(stats.server.totalBytes).toBeLessThan(94300) expect(stats.server.totalBytes).toBeLessThan(93600)
const modules = await analyzeSizes('node_modules/**/*', serverDir) const modules = await analyzeSizes('node_modules/**/*', serverDir)
expect(modules.totalBytes).toBeLessThan(2717000) expect(modules.totalBytes).toBeLessThan(2693900)
const packages = modules.files const packages = modules.files
.filter(m => m.endsWith('package.json')) .filter(m => m.endsWith('package.json'))
@ -63,7 +63,6 @@ describe.skipIf(isWindows)('minimal nuxt application', () => {
"@vue/runtime-dom", "@vue/runtime-dom",
"@vue/server-renderer", "@vue/server-renderer",
"@vue/shared", "@vue/shared",
"buffer-from",
"cookie-es", "cookie-es",
"defu", "defu",
"destr", "destr",
@ -78,7 +77,6 @@ describe.skipIf(isWindows)('minimal nuxt application', () => {
"radix3", "radix3",
"scule", "scule",
"source-map", "source-map",
"source-map-support",
"ufo", "ufo",
"uncrypto", "uncrypto",
"unctx", "unctx",

View File

@ -1 +1,3 @@
export default defineNuxtConfig({}) export default defineNuxtConfig({
sourcemap: false
})