@rspack/test-tools 0.6.5 → 0.7.0-beta.0
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 +1 -1
- package/dist/case/compiler.js +1 -1
- package/dist/case/config.d.ts +2 -0
- package/dist/case/defaults.d.ts +5 -1
- package/dist/case/defaults.js +6 -3
- package/dist/case/diff.d.ts +2 -0
- package/dist/case/diff.js +2 -2
- package/dist/case/error.d.ts +1 -1
- package/dist/case/error.js +2 -2
- package/dist/case/hash.d.ts +2 -0
- package/dist/case/hook.d.ts +5 -0
- package/dist/case/hook.js +4 -3
- package/dist/case/hot-step.js +1 -1
- package/dist/case/hot.js +1 -1
- package/dist/case/index.d.ts +8 -8
- package/dist/case/index.js +8 -8
- package/dist/case/normal.js +1 -1
- package/dist/case/stats-api.d.ts +1 -1
- package/dist/case/stats-api.js +2 -2
- package/dist/case/treeshaking.js +2 -13
- package/dist/case/watch.js +1 -1
- package/dist/compare/comparator.js +2 -2
- package/dist/compare/compare.d.ts +1 -1
- package/dist/compare/compare.js +3 -3
- package/dist/compare/format-code.js +1 -1
- package/dist/compare/index.d.ts +3 -3
- package/dist/compare/index.js +3 -3
- package/dist/compiler.js +1 -1
- package/dist/helper/index.d.ts +2 -2
- package/dist/helper/index.js +2 -2
- package/dist/helper/legacy/createFakeWorker.js +0 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +8 -8
- package/dist/processor/basic.js +2 -2
- package/dist/processor/builtin.js +4 -3
- package/dist/processor/config.js +3 -3
- package/dist/processor/defaults.d.ts +8 -2
- package/dist/processor/defaults.js +2 -2
- package/dist/processor/diagnostic.js +3 -3
- package/dist/processor/diff.d.ts +1 -1
- package/dist/processor/diff.js +1 -1
- package/dist/processor/error.d.ts +2 -2
- package/dist/processor/error.js +1 -1
- package/dist/processor/hook.d.ts +8 -6
- package/dist/processor/hook.js +18 -9
- package/dist/processor/hot-step.d.ts +2 -2
- package/dist/processor/hot-step.js +2 -2
- package/dist/processor/hot.js +2 -2
- package/dist/processor/index.d.ts +11 -11
- package/dist/processor/index.js +11 -11
- package/dist/processor/multi.js +1 -1
- package/dist/processor/normal.js +2 -2
- package/dist/processor/snapshot.d.ts +1 -1
- package/dist/processor/snapshot.js +3 -3
- package/dist/processor/stats-api.d.ts +2 -1
- package/dist/processor/stats-api.js +3 -2
- package/dist/processor/stats.js +4 -4
- package/dist/processor/treeshaking.d.ts +1 -2
- package/dist/processor/treeshaking.js +9 -21
- package/dist/processor/watch.js +5 -5
- package/dist/reporter/diff-stats.js +2 -2
- package/dist/reporter/index.d.ts +1 -1
- package/dist/reporter/index.js +1 -1
- package/dist/runner/basic.js +1 -1
- package/dist/runner/index.d.ts +2 -2
- package/dist/runner/index.js +2 -2
- package/dist/runner/runner/basic.js +1 -1
- package/dist/runner/runner/cjs.js +1 -1
- package/dist/runner/runner/esm.js +1 -1
- package/dist/runner/runner/normal.d.ts +1 -1
- package/dist/runner/runner/normal.js +1 -1
- package/dist/runner/runner/watch.d.ts +1 -1
- package/dist/runner/runner/web/fake.d.ts +1 -1
- package/dist/runner/runner/web/fake.js +5 -5
- package/dist/runner/runner/web/jsdom.d.ts +1 -1
- package/dist/runner/runner/web/jsdom.js +3 -3
- package/dist/runner/watch.js +1 -1
- package/dist/test/context.d.ts +1 -1
- package/dist/test/context.js +1 -1
- package/dist/test/creator.d.ts +1 -1
- package/dist/test/creator.js +1 -1
- package/dist/test/tester.d.ts +1 -1
- package/dist/type.d.ts +3 -3
- package/package.json +5 -5
package/dist/type.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
3
|
-
import type { Configuration as WebpackOptions, Compiler as WebpackCompiler, Stats as WebpackStats, StatsCompilation as WebpackStatsCompilation } from "webpack";
|
|
4
|
-
import { IBasicModuleScope, TRunnerRequirer } from "./runner/type";
|
|
2
|
+
import { Compiler as RspackCompiler, RspackOptions, Stats as RspackStats, StatsCompilation as RspackStatsCompilation } from "@rspack/core";
|
|
5
3
|
import EventEmitter from "events";
|
|
4
|
+
import type { Compiler as WebpackCompiler, Configuration as WebpackOptions, Stats as WebpackStats, StatsCompilation as WebpackStatsCompilation } from "webpack";
|
|
5
|
+
import { IBasicModuleScope, TRunnerRequirer } from "./runner/type";
|
|
6
6
|
export interface ITestContext {
|
|
7
7
|
getSource(sub?: string): string;
|
|
8
8
|
getDist(sub?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/test-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"webpack-merge": "5.9.0",
|
|
45
45
|
"webpack-sources": "3.2.3",
|
|
46
46
|
"which-module": "2.0.1",
|
|
47
|
-
"@rspack/core": "0.
|
|
47
|
+
"@rspack/core": "0.7.0-beta.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@arco-design/web-react": "^2.56.1",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"react": "18.0.0",
|
|
66
66
|
"react-dom": "18.0.0",
|
|
67
67
|
"react-refresh": "0.14.0",
|
|
68
|
-
"@rspack/cli": "0.
|
|
69
|
-
"@rspack/plugin-minify": "0.
|
|
68
|
+
"@rspack/cli": "0.7.0-beta.0",
|
|
69
|
+
"@rspack/plugin-minify": "0.7.0-beta.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsc -b ./tsconfig.build.json",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"dev": "tsc -b -w",
|
|
76
76
|
"test": "sh -c 'run-s \"test:* -- $*\"' sh",
|
|
77
77
|
"testu": "sh -c 'run-s \"test:* -- $*\"' sh -u",
|
|
78
|
-
"test:base": "cross-env
|
|
78
|
+
"test:base": "cross-env NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --logHeapUsage --config ./jest.config.js --passWithNoTests",
|
|
79
79
|
"test:hot": "cross-env RSPACK_HOT_TEST=true NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --logHeapUsage --config ./jest.config.hot.js --passWithNoTests",
|
|
80
80
|
"test:diff": "cross-env RSPACK_DIFF=true NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --logHeapUsage --config ./jest.config.diff.js --passWithNoTests",
|
|
81
81
|
"api-extractor": "api-extractor run --verbose",
|