Skip to content

Commit 8370ac1

Browse files
authored
test: upgrade test tools (#29)
1 parent 8679a10 commit 8370ac1

35 files changed

Lines changed: 949 additions & 548 deletions

File tree

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
"@prefresh/core": "^1.5.3",
4646
"@prefresh/utils": "^1.2.0",
4747
"@rslib/core": "^0.4.0",
48-
"@rspack/core": "1.2.2",
49-
"@rspack/test-tools": "1.2.2",
50-
"@swc/helpers": "0.5.15",
51-
"@swc/plugin-prefresh": "^6.2.0",
48+
"@rspack/core": "npm:@rspack-canary/core@1.5.8-canary-f37fe028-20250928065933",
49+
"@rspack/test-tools": "npm:@rspack-canary/test-tools@1.5.8-canary-f37fe028-20250928065933",
50+
"@swc/helpers": "0.5.17",
51+
"@swc/plugin-prefresh": "^9.1.0",
5252
"@types/jest": "29.5.14",
5353
"@types/node": "^22.13.0",
5454
"cross-env": "^7.0.3",

pnpm-lock.yaml

Lines changed: 781 additions & 411 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/hotCases/hook/useContext#initial/__snapshots__/web/0.snap.txt renamed to test/hotCases/hook/useContext_initial/__snapshots__/web/0.snap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Case useContext#initial: Step 0
1+
# Case useContext_initial: Step 0
22

33
## Changed Files
44

test/hotCases/hook/useContext#initial/__snapshots__/web/1.snap.txt renamed to test/hotCases/hook/useContext_initial/__snapshots__/web/1.snap.txt

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Case useContext#initial: Step 1
1+
# Case useContext_initial: Step 1
22

33
## Changed Files
44
- app.jsx
55

66
## Asset Files
77
- Bundle: bundle.js
88
- Manifest: main.LAST_HASH.hot-update.json, size: 28
9-
- Update: main.LAST_HASH.hot-update.js, size: 5034
9+
- Update: main.LAST_HASH.hot-update.js, size: 5063
1010

1111
## Manifest
1212

@@ -23,16 +23,20 @@
2323
### main.LAST_HASH.hot-update.js
2424

2525
#### Changed Modules
26-
- ../useContext​#initial/app.jsx
26+
- ./app.jsx
2727

2828
#### Changed Runtime Modules
2929
- webpack/runtime/get_full_hash
3030

3131
#### Changed Content
3232
```js
3333
"use strict";
34-
self["webpackHotUpdate"]('main', {
35-
"../useContext​#initial/app.jsx": (function (module, __webpack_exports__, __webpack_require__) {
34+
self["webpackHotUpdate"]("main", {
35+
"./app.jsx":
36+
/*!*****************!*\
37+
!*** ./app.jsx ***!
38+
\*****************/
39+
(function (module, __webpack_exports__, __webpack_require__) {
3640
__webpack_require__.r(__webpack_exports__);
3741
__webpack_require__.d(__webpack_exports__, {
3842
App: () => (App)
@@ -59,12 +63,12 @@ function Inner() {
5963
theme
6064
]
6165
}, void 0, true, {
62-
fileName: "<ROOT>/test/hotCases/hook/useContext#initial/app.jsx",
66+
fileName: "<ROOT>/test/hotCases/hook/useContext_initial/app.jsx",
6367
lineNumber: 8,
6468
columnNumber: 16
6569
}, this)
6670
}, void 0, false, {
67-
fileName: "<ROOT>/test/hotCases/hook/useContext#initial/app.jsx",
71+
fileName: "<ROOT>/test/hotCases/hook/useContext_initial/app.jsx",
6872
lineNumber: 8,
6973
columnNumber: 11
7074
}, this);
@@ -73,7 +77,7 @@ _s(Inner, "+C1P7ukOg/azcV4AZ819oyezFOE=");
7377
_c = Inner;
7478
function App() {
7579
return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Inner, {}, void 0, false, {
76-
fileName: "<ROOT>/test/hotCases/hook/useContext#initial/app.jsx",
80+
fileName: "<ROOT>/test/hotCases/hook/useContext_initial/app.jsx",
7781
lineNumber: 13,
7882
columnNumber: 5
7983
}, this);
@@ -162,10 +166,7 @@ if (moduleHot) {
162166
},function(__webpack_require__) {
163167
// webpack/runtime/get_full_hash
164168
(() => {
165-
__webpack_require__.h = function () {
166-
return "CURRENT_HASH";
167-
};
168-
169+
__webpack_require__.h = () => ("CURRENT_HASH")
169170
})();
170171

171172
}
File renamed without changes.
File renamed without changes.

test/hotCases/hook/useContext#initial/rspack.config.js renamed to test/hotCases/hook/useContext_initial/rspack.config.js

File renamed without changes.

test/hotCases/hook/useContext#keep/__snapshots__/web/0.snap.txt renamed to test/hotCases/hook/useContext_keep/__snapshots__/web/0.snap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Case useContext#keep: Step 0
1+
# Case useContext_keep: Step 0
22

33
## Changed Files
44

test/hotCases/hook/useContext#keep/__snapshots__/web/1.snap.txt renamed to test/hotCases/hook/useContext_keep/__snapshots__/web/1.snap.txt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Case useContext#keep: Step 1
1+
# Case useContext_keep: Step 1
22

33
## Changed Files
44
- app.jsx
55

66
## Asset Files
77
- Bundle: bundle.js
88
- Manifest: main.LAST_HASH.hot-update.json, size: 28
9-
- Update: main.LAST_HASH.hot-update.js, size: 5331
9+
- Update: main.LAST_HASH.hot-update.js, size: 5363
1010

1111
## Manifest
1212

@@ -23,16 +23,20 @@
2323
### main.LAST_HASH.hot-update.js
2424

2525
#### Changed Modules
26-
- ../useContext​#keep/app.jsx
26+
- ./app.jsx
2727

2828
#### Changed Runtime Modules
2929
- webpack/runtime/get_full_hash
3030

3131
#### Changed Content
3232
```js
3333
"use strict";
34-
self["webpackHotUpdate"]('main', {
35-
"../useContext​#keep/app.jsx": (function (module, __webpack_exports__, __webpack_require__) {
34+
self["webpackHotUpdate"]("main", {
35+
"./app.jsx":
36+
/*!*****************!*\
37+
!*** ./app.jsx ***!
38+
\*****************/
39+
(function (module, __webpack_exports__, __webpack_require__) {
3640
__webpack_require__.r(__webpack_exports__);
3741
__webpack_require__.d(__webpack_exports__, {
3842
App: () => (App)
@@ -59,12 +63,12 @@ function Inner() {
5963
theme
6064
]
6165
}, void 0, true, {
62-
fileName: "<ROOT>/test/hotCases/hook/useContext#keep/app.jsx",
66+
fileName: "<ROOT>/test/hotCases/hook/useContext_keep/app.jsx",
6367
lineNumber: 8,
6468
columnNumber: 16
6569
}, this)
6670
}, void 0, false, {
67-
fileName: "<ROOT>/test/hotCases/hook/useContext#keep/app.jsx",
71+
fileName: "<ROOT>/test/hotCases/hook/useContext_keep/app.jsx",
6872
lineNumber: 8,
6973
columnNumber: 11
7074
}, this);
@@ -75,12 +79,12 @@ function App() {
7579
return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Theme.Provider, {
7680
value: "dark",
7781
children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Inner, {}, void 0, false, {
78-
fileName: "<ROOT>/test/hotCases/hook/useContext#keep/app.jsx",
82+
fileName: "<ROOT>/test/hotCases/hook/useContext_keep/app.jsx",
7983
lineNumber: 14,
8084
columnNumber: 7
8185
}, this)
8286
}, void 0, false, {
83-
fileName: "<ROOT>/test/hotCases/hook/useContext#keep/app.jsx",
87+
fileName: "<ROOT>/test/hotCases/hook/useContext_keep/app.jsx",
8488
lineNumber: 13,
8589
columnNumber: 5
8690
}, this);
@@ -169,10 +173,7 @@ if (moduleHot) {
169173
},function(__webpack_require__) {
170174
// webpack/runtime/get_full_hash
171175
(() => {
172-
__webpack_require__.h = function () {
173-
return "CURRENT_HASH";
174-
};
175-
176+
__webpack_require__.h = () => ("CURRENT_HASH")
176177
})();
177178

178179
}
File renamed without changes.

0 commit comments

Comments
 (0)