From d5e7db08a4416015c940a49ad09489f65bda5f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Thu, 21 Nov 2024 15:28:40 +0900 Subject: [PATCH] test: change assets-runtime-base outDir to different one (#18727) --- .../assets/__tests__/runtime-base/assets-runtime-base.spec.ts | 2 +- playground/assets/vite.config-runtime-base.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/assets/__tests__/runtime-base/assets-runtime-base.spec.ts b/playground/assets/__tests__/runtime-base/assets-runtime-base.spec.ts index b77a8bf6729678..0eb75e0f18d472 100644 --- a/playground/assets/__tests__/runtime-base/assets-runtime-base.spec.ts +++ b/playground/assets/__tests__/runtime-base/assets-runtime-base.spec.ts @@ -137,7 +137,7 @@ describe('css url() references', () => { describe.runIf(isBuild)('index.css URLs', () => { let css: string beforeAll(() => { - css = findAssetFile(/index-[-\w]{8}\.css$/, '', 'other-assets') + css = findAssetFile(/index-[-\w]{8}\.css$/, 'runtime-base', 'other-assets') }) test('relative asset URL', () => { diff --git a/playground/assets/vite.config-runtime-base.js b/playground/assets/vite.config-runtime-base.js index 2ac73c54374a68..5113ccebc68c3d 100644 --- a/playground/assets/vite.config-runtime-base.js +++ b/playground/assets/vite.config-runtime-base.js @@ -11,7 +11,7 @@ export default defineConfig({ base: './', // overwrite the original base: '/foo/' build: { ...baseConfig.build, - outDir: 'dist', + outDir: 'dist/runtime-base', watch: null, minify: false, assetsInlineLimit: 0,