Skip to content

Commit 0244b83

Browse files
authored
fix: test failed in ci when using canary version (#31)
1 parent 2e5016d commit 0244b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/module-federation.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ describe("Module federation", () => {
259259
const remoteEntryTextContent = await response.text();
260260

261261
expect(remoteEntryTextContent).toMatch(
262-
/@rspack(-canary?)\/core\/hot\/dev-server\.js/,
262+
/@rspack(-canary)?\/core\/hot\/dev-server\.js/,
263263
);
264264

265265
expect(consoleMessages.map((message) => message.text())).toMatchSnapshot(
@@ -285,7 +285,7 @@ describe("Module federation", () => {
285285
const mainEntryTextContent = await response.text();
286286

287287
expect(mainEntryTextContent).toMatch(
288-
/@rspack(-canary?)\/core\/hot\/dev-server\.js/,
288+
/@rspack(-canary)?\/core\/hot\/dev-server\.js/,
289289
);
290290

291291
expect(consoleMessages.map((message) => message.text())).toMatchSnapshot(

0 commit comments

Comments
 (0)