Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 committed Jan 26, 2025
1 parent 297dacb commit b2d6c3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/style/stylus/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
[
"<ROOT>/tests/integration/style/stylus/bundle-false/dist/esm/a.css",
"<ROOT>/tests/integration/style/stylus/bundle-false/dist/esm/b_module.css",
Expand Down Expand Up @@ -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(`
[
"<ROOT>/tests/integration/style/stylus/bundle-false/dist/cjs/a.css",
"<ROOT>/tests/integration/style/stylus/bundle-false/dist/cjs/b_module.css",
Expand Down

0 comments on commit b2d6c3c

Please sign in to comment.