Skip to content

Commit

Permalink
fix: react refresh test windows failed (#4242)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk authored Sep 25, 2023
1 parent bc77dd6 commit a757197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rspack-plugin-react-refresh/tests/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe("react-refresh-rspack-plugin", () => {
path.join(__dirname, "fixtures/custom"),
{
exclude: null,
include: [/node_modules\/foo/]
include: path.join(__dirname, "fixtures/node_modules/foo")
},
(_, __, { reactRefresh, fixture, runtime, vendor }) => {
expect(vendor).toContain("$RefreshReg$");
Expand All @@ -107,7 +107,7 @@ describe("react-refresh-rspack-plugin", () => {
compileWithReactRefresh(
path.join(__dirname, "fixtures/custom"),
{
exclude: /custom\/index.js/
exclude: path.join(__dirname, "fixtures/custom/index.js")
},
(_, __, { reactRefresh, fixture, runtime, vendor }) => {
expect(fixture).not.toContain("$RefreshReg$");
Expand Down

0 comments on commit a757197

Please sign in to comment.