forked from web-infra-dev/rspack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: should run watch cases test in build assets (web-infra-dev#7897)
- Loading branch information
Showing
21 changed files
with
86 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
.../newTreeshaking/re-export-optimization-for-inaffected-module/__snapshots__/web/0.snap.txt
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
.../newTreeshaking/re-export-optimization-for-inaffected-module/__snapshots__/web/1.snap.txt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...tools/tests/hotCases/newTreeshaking/re-export-optimization-for-inaffected-module/index.js
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...ools/tests/hotCases/newTreeshaking/re-export-optimization-for-inaffected-module/module.js
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/rspack-test-tools/tests/watchCases/compiler/multiply-compiler/0/entry1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import module from "./file"; | ||
|
||
it("should watch for multiply compiler", function () { | ||
it("should watch for multiply compiler (entry1)", function () { | ||
expect(module).toBe(WATCH_STEP); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/rspack-test-tools/tests/watchCases/compiler/multiply-compiler/0/entry2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import module from "./file"; | ||
|
||
it("should watch for multiply compiler", function () { | ||
it("should watch for multiply compiler (entry2)", function () { | ||
expect(module).toBe(WATCH_STEP); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/rspack-test-tools/tests/watchCases/compiler/multiply-compiler/test.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
findBundle(i) { | ||
switch (i) { | ||
case 0: | ||
return `bundle1.js` | ||
case 1: | ||
return `bundle2.js` | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/rspack-test-tools/tests/watchCases/context/out-of-context/test.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
documentType: 'fake', | ||
findBundle() { | ||
return ['bundle.css', 'bundle.js'] | ||
findBundle(i) { | ||
return ["bundle.css", "bundle.js"] | ||
} | ||
} |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
packages/rspack-test-tools/tests/watchCases/side-effects/basic/0/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {value} from "./module"; | ||
|
||
it("should have correct export from re-exports", function () { | ||
expect(value).toBe("foo"); | ||
}); |
3 changes: 3 additions & 0 deletions
3
packages/rspack-test-tools/tests/watchCases/side-effects/basic/0/module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import {v} from './reexports' | ||
// ... | ||
export const value = '' + v; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
packages/rspack-test-tools/tests/watchCases/side-effects/basic/1/module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import {v} from './reexports' | ||
export const value = '' + v; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters