diff --git a/tests/integration/redirect/style.test.ts b/tests/integration/redirect/style.test.ts index 5f783ee28..a3ff10a72 100644 --- a/tests/integration/redirect/style.test.ts +++ b/tests/integration/redirect/style.test.ts @@ -33,8 +33,8 @@ test('0. default', async () => { /cjs\/module\/index\.cjs/, ); expect(cssModuleIndexJs).toMatchInlineSnapshot(` - "import * as __WEBPACK_EXTERNAL_MODULE__index_module_js__ from "./index.module.js"; - __WEBPACK_EXTERNAL_MODULE__index_module_js__["default"]; + "import * as __WEBPACK_EXTERNAL_MODULE__index_module_js_6796f91d__ from "./index.module.js"; + __WEBPACK_EXTERNAL_MODULE__index_module_js_6796f91d__["default"]; " `); expect(cssModuleIndexCjs).toContain( @@ -66,8 +66,8 @@ test('1. style.path: false', () => { /cjs\/module\/index\.cjs/, ); expect(cssModuleIndexJs).toMatchInlineSnapshot(` - "import * as __WEBPACK_EXTERNAL_MODULE__module_index_module_js__ from "@/module/index.module.js"; - __WEBPACK_EXTERNAL_MODULE__module_index_module_js__["default"]; + "import * as __WEBPACK_EXTERNAL_MODULE__module_index_module_js_37f93df7__ from "@/module/index.module.js"; + __WEBPACK_EXTERNAL_MODULE__module_index_module_js_37f93df7__["default"]; " `); expect(cssModuleIndexCjs).toContain( @@ -99,8 +99,8 @@ test('2. style.extension: false', async () => { /cjs\/module\/index\.cjs/, ); expect(cssModuleIndexJs).toMatchInlineSnapshot(` - "import * as __WEBPACK_EXTERNAL_MODULE__index_module_less__ from "./index.module.less"; - __WEBPACK_EXTERNAL_MODULE__index_module_less__["default"]; + "import * as __WEBPACK_EXTERNAL_MODULE__index_module_less_d1c6f702__ from "./index.module.less"; + __WEBPACK_EXTERNAL_MODULE__index_module_less_d1c6f702__["default"]; " `); expect(cssModuleIndexCjs).toContain( @@ -132,8 +132,8 @@ test('3. style.path: false, style.extension: false', async () => { /cjs\/module\/index\.cjs/, ); expect(cssModuleIndexJs).toMatchInlineSnapshot(` - "import * as __WEBPACK_EXTERNAL_MODULE__module_index_module_less__ from "@/module/index.module.less"; - __WEBPACK_EXTERNAL_MODULE__module_index_module_less__["default"]; + "import * as __WEBPACK_EXTERNAL_MODULE__module_index_module_less_80aa7a8a__ from "@/module/index.module.less"; + __WEBPACK_EXTERNAL_MODULE__module_index_module_less_80aa7a8a__["default"]; " `); expect(cssModuleIndexCjs).toContain(