mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
test: remove sourcemaps from minimal test (#19730)
This commit is contained in:
parent
279088d5ab
commit
5d9d92c4e0
@ -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",
|
||||||
|
4
test/fixtures/minimal/nuxt.config.ts
vendored
4
test/fixtures/minimal/nuxt.config.ts
vendored
@ -1 +1,3 @@
|
|||||||
export default defineNuxtConfig({})
|
export default defineNuxtConfig({
|
||||||
|
sourcemap: false
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user