@rspack/test-tools 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/case/builtin.js +9 -5
- package/dist/case/cache.js +9 -5
- package/dist/case/common.js +9 -5
- package/dist/case/compiler.js +9 -5
- package/dist/case/config.js +9 -5
- package/dist/case/defaults.js +9 -5
- package/dist/case/diagnostic.js +9 -5
- package/dist/case/error.js +9 -5
- package/dist/case/esm-output.js +9 -5
- package/dist/case/example.js +9 -5
- package/dist/case/hash.js +9 -5
- package/dist/case/hook.js +11 -7
- package/dist/case/hot-step.js +9 -5
- package/dist/case/hot.js +9 -5
- package/dist/case/incremental.js +9 -5
- package/dist/case/index.js +9 -5
- package/dist/case/multi-compiler.js +9 -5
- package/dist/case/native-watcher.js +9 -5
- package/dist/case/normal.js +9 -5
- package/dist/case/runner.js +9 -5
- package/dist/case/serial.js +9 -5
- package/dist/case/stats-api.js +9 -5
- package/dist/case/stats-output.js +9 -5
- package/dist/case/treeshaking.js +9 -5
- package/dist/case/watch.js +9 -5
- package/dist/compiler.js +9 -5
- package/dist/helper/directory.js +9 -5
- package/dist/helper/disable-iconv-lite-warning.js +12 -8
- package/dist/helper/expect/diff.js +12 -8
- package/dist/helper/expect/error.js +9 -5
- package/dist/helper/expect/placeholder.js +9 -5
- package/dist/helper/expect/rspack.js +12 -8
- package/dist/helper/expect/snapshot-serializers.d.ts +4 -0
- package/dist/helper/expect/snapshot-serializers.js +79 -0
- package/dist/helper/expect/to-be-typeof.js +12 -8
- package/dist/helper/expect/to-end-with.js +12 -8
- package/dist/helper/expect/to-match-file-snapshot.js +12 -9
- package/dist/helper/hot-update/index.js +9 -5
- package/dist/helper/hot-update/loader.js +13 -9
- package/dist/helper/hot-update/plugin.js +21 -13
- package/dist/helper/index.js +12 -8
- package/dist/helper/is.js +9 -5
- package/dist/helper/legacy/EventSourceForNode.js +12 -8
- package/dist/helper/legacy/LogTestPlugin.js +12 -8
- package/dist/helper/legacy/asModule.js +12 -8
- package/dist/helper/legacy/captureStdio.js +12 -8
- package/dist/helper/legacy/checkArrayExpectation.js +12 -8
- package/dist/helper/legacy/copyDiff.js +12 -8
- package/dist/helper/legacy/createFakeWorker.js +12 -8
- package/dist/helper/legacy/createLazyTestEnv.js +12 -8
- package/dist/helper/legacy/currentScript.js +12 -8
- package/dist/helper/legacy/deprecationTracking.js +12 -8
- package/dist/helper/legacy/expectSource.js +9 -5
- package/dist/helper/legacy/fakeSystem.js +12 -8
- package/dist/helper/legacy/findOutputFiles.js +12 -8
- package/dist/helper/legacy/parseResource.js +12 -8
- package/dist/helper/legacy/regexEscape.js +12 -8
- package/dist/helper/legacy/supportDefaultAssignment.js +12 -8
- package/dist/helper/legacy/supportsTextDecoder.js +12 -8
- package/dist/helper/legacy/supportsUsing.js +12 -8
- package/dist/helper/legacy/urlToRelativePath.js +12 -8
- package/dist/helper/parse-modules.js +12 -8
- package/dist/helper/read-config-file.js +9 -5
- package/dist/helper/serializers.js +9 -5
- package/dist/helper/stringify-config.js +9 -5
- package/dist/helper/update-snapshot.js +12 -8
- package/dist/helper/util/checkSourceMap.js +12 -8
- package/dist/helper/util/checkStats.js +12 -8
- package/dist/helper/util/expectWarningFactory.js +12 -8
- package/dist/helper/util/filterUtil.js +15 -10
- package/dist/helper/win.js +9 -5
- package/dist/index.js +9 -5
- package/dist/plugin/index.js +9 -5
- package/dist/plugin/lazy-compilation-test-plugin.js +9 -5
- package/dist/reporter/index.js +9 -5
- package/dist/reporter/streamed-events-reporter.js +9 -5
- package/dist/runner/index.js +9 -5
- package/dist/runner/node/index.js +9 -5
- package/dist/runner/web/index.js +9 -5
- package/dist/test/context.js +9 -5
- package/dist/test/creator.js +9 -5
- package/dist/test/debug.js +9 -5
- package/dist/test/tester.js +9 -5
- package/dist/type.js +13 -9
- package/package.json +8 -10
package/dist/type.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
3
|
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
9
13
|
};
|
|
10
14
|
})();
|
|
11
15
|
(()=>{
|
|
@@ -23,10 +27,6 @@ var __webpack_require__ = {};
|
|
|
23
27
|
})();
|
|
24
28
|
var __webpack_exports__ = {};
|
|
25
29
|
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
ECompareResultType: ()=>ECompareResultType,
|
|
28
|
-
EEsmMode: ()=>EEsmMode
|
|
29
|
-
});
|
|
30
30
|
var ECompareResultType = /*#__PURE__*/ function(ECompareResultType) {
|
|
31
31
|
ECompareResultType["Same"] = "same";
|
|
32
32
|
ECompareResultType["Missing"] = "missing";
|
|
@@ -41,6 +41,10 @@ var EEsmMode = /*#__PURE__*/ function(EEsmMode) {
|
|
|
41
41
|
EEsmMode[EEsmMode["Unlinked"] = 2] = "Unlinked";
|
|
42
42
|
return EEsmMode;
|
|
43
43
|
}({});
|
|
44
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
45
|
+
ECompareResultType: ()=>ECompareResultType,
|
|
46
|
+
EEsmMode: ()=>EEsmMode
|
|
47
|
+
});
|
|
44
48
|
exports.ECompareResultType = __webpack_exports__.ECompareResultType;
|
|
45
49
|
exports.EEsmMode = __webpack_exports__.EEsmMode;
|
|
46
50
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/test-tools",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "Test tools for rspack",
|
|
5
5
|
"homepage": "https://rspack.rs",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"rstest.d.ts"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/generator": "7.29.
|
|
37
|
-
"@babel/parser": "7.29.
|
|
38
|
-
"@babel/traverse": "7.29.
|
|
39
|
-
"@babel/types": "7.29.
|
|
36
|
+
"@babel/generator": "7.29.7",
|
|
37
|
+
"@babel/parser": "7.29.7",
|
|
38
|
+
"@babel/traverse": "7.29.7",
|
|
39
|
+
"@babel/types": "7.29.7",
|
|
40
40
|
"chalk": "^4.1.2",
|
|
41
41
|
"cross-env": "^10.1.0",
|
|
42
42
|
"filenamify": "4.3.0",
|
|
@@ -44,9 +44,8 @@
|
|
|
44
44
|
"iconv-lite": "^0.7.2",
|
|
45
45
|
"javascript-stringify": "^2.1.0",
|
|
46
46
|
"jest-diff": "^30.3.0",
|
|
47
|
-
"jest-snapshot": "29.7.0",
|
|
48
47
|
"jsdom": "^26.1.0",
|
|
49
|
-
"memfs": "4.57.
|
|
48
|
+
"memfs": "4.57.3",
|
|
50
49
|
"path-serializer": "0.6.0",
|
|
51
50
|
"pretty-format": "30.3.0",
|
|
52
51
|
"rimraf": "^5.0.10",
|
|
@@ -54,17 +53,16 @@
|
|
|
54
53
|
"source-map": "^0.7.6",
|
|
55
54
|
"terser-webpack-plugin": "^5.5.0",
|
|
56
55
|
"wast-loader": "^1.14.1",
|
|
57
|
-
"webpack": "5.104.1",
|
|
58
56
|
"webpack-sources": "3.3.4"
|
|
59
57
|
},
|
|
60
58
|
"devDependencies": {
|
|
61
|
-
"@rslib/core": "^0.
|
|
59
|
+
"@rslib/core": "^0.22.0",
|
|
62
60
|
"@types/babel__generator": "7.27.0",
|
|
63
61
|
"@types/babel__traverse": "7.28.0",
|
|
64
62
|
"@types/fs-extra": "11.0.4",
|
|
65
63
|
"@types/jsdom": "^21.1.7",
|
|
66
64
|
"typescript": "^6.0.3",
|
|
67
|
-
"@rspack/core": "2.0.
|
|
65
|
+
"@rspack/core": "2.0.6"
|
|
68
66
|
},
|
|
69
67
|
"peerDependencies": {
|
|
70
68
|
"@rspack/core": ">=1.0.0"
|