From 46136ddfc6b993bd938031a98fbad1a927774f2f Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Wed, 19 Nov 2025 12:20:02 +0800 Subject: [PATCH] test: recover assets with public path tests --- tests/integration/asset/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/asset/index.test.ts b/tests/integration/asset/index.test.ts index 47b2ab99c..c2587b6df 100644 --- a/tests/integration/asset/index.test.ts +++ b/tests/integration/asset/index.test.ts @@ -203,7 +203,7 @@ test('set the assets output path', async () => { `); }); -test.skip('set the assets public path', async () => { +test('set the assets public path', async () => { const fixturePath = join(__dirname, 'public-path'); const { contents } = await buildAndGetResults({ fixturePath }); @@ -221,7 +221,7 @@ test.skip('set the assets public path', async () => { if (process.env.ADVANCED_ESM) { const { content: runtimeJs } = queryContent(contents.esm0!, /runtime\.js/); expect(indexJs).toMatchInlineSnapshot(` - "import { __webpack_require__ } from "./runtime.js"; + "import { __webpack_require__ } from "./rslib-runtime.js"; const image_namespaceObject = __webpack_require__.p + "static/image/image.png"; const src = image_namespaceObject; export default src;