From b2d6c3c57738429f980d5284f08ff73c97dab103 Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Sun, 26 Jan 2025 16:00:23 +0800 Subject: [PATCH] chore: update --- tests/integration/style/stylus/index.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/style/stylus/index.test.ts b/tests/integration/style/stylus/index.test.ts index f67299404..09eca500b 100644 --- a/tests/integration/style/stylus/index.test.ts +++ b/tests/integration/style/stylus/index.test.ts @@ -59,12 +59,12 @@ test('should extract css with pluginStylus in bundle-false', async () => { const { contents } = await buildAndGetResults({ fixturePath, type: 'css' }); const { contents: jsContents } = await buildAndGetResults({ fixturePath }); - const esmFiles = Object.keys(contents.esm); + const esmCssFiles = Object.keys(contents.esm); const esmCssContents = Object.values(contents.esm); - const cjsFiles = Object.keys(contents.cjs); + const cjsCssFiles = Object.keys(contents.cjs); const cjsCssContents = Object.values(contents.cjs); - expect(esmFiles).toMatchInlineSnapshot(` + expect(esmCssFiles).toMatchInlineSnapshot(` [ "/tests/integration/style/stylus/bundle-false/dist/esm/a.css", "/tests/integration/style/stylus/bundle-false/dist/esm/b_module.css", @@ -102,7 +102,7 @@ test('should extract css with pluginStylus in bundle-false', async () => { 'import * as __WEBPACK_EXTERNAL_MODULE__b_module_js_6a8a3e41__ from "./b.module.js"', ]); - expect(cjsFiles).toMatchInlineSnapshot(` + expect(cjsCssFiles).toMatchInlineSnapshot(` [ "/tests/integration/style/stylus/bundle-false/dist/cjs/a.css", "/tests/integration/style/stylus/bundle-false/dist/cjs/b_module.css",