From 7f069dc8112c316732a6b5f92b1923b1d187db35 Mon Sep 17 00:00:00 2001 From: harlan Date: Tue, 21 Jan 2025 20:36:44 +1100 Subject: [PATCH] chore: broken tests --- test/bundle.test.ts | 6 +++--- test/fixtures/basic/pages/head.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/bundle.test.ts b/test/bundle.test.ts index 353e01d9d2..c6c3c70af0 100644 --- a/test/bundle.test.ts +++ b/test/bundle.test.ts @@ -58,7 +58,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM const serverDir = join(rootDir, '.output/server') const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir) - expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"209k"`) + expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"208k"`) const modules = await analyzeSizes(['node_modules/**/*'], serverDir) expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1382k"`) @@ -98,10 +98,10 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM const serverDir = join(rootDir, '.output-inline/server') const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir) - expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"560k"`) + expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"559k"`) const modules = await analyzeSizes(['node_modules/**/*'], serverDir) - expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"79.7k"`) + expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"79.8k"`) const packages = modules.files .filter(m => m.endsWith('package.json')) diff --git a/test/fixtures/basic/pages/head.vue b/test/fixtures/basic/pages/head.vue index f3d752d42f..49cc972353 100644 --- a/test/fixtures/basic/pages/head.vue +++ b/test/fixtures/basic/pages/head.vue @@ -18,7 +18,7 @@ export default defineNuxtComponent({ script: [ { src: 'https://a-body-appended-script.com', - body: true, + tagPosition: 'bodyClose', }, ], meta: [{ name: 'description', content: 'first' }],