Skip to content

Commit

Permalink
test: ✅ update test case snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
stormslowly committed Jan 20, 2025
1 parent dc043d1 commit 18b77f2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ modules by path ./ 235 bytes (javascript) 7 bytes (asset)
[no exports used]
ModuleConcatenation bailout: Module is an entry point
./stringModule.js 1 bytes [depth 1] [orphan] [built]
[no exports]
[module unused]
ModuleConcatenation bailout: Module is not an ECMAScript module
esm import ./stringModule [686] ./index.js
Expand Down Expand Up @@ -414,7 +413,6 @@ webpack/runtime/make_namespace_object 280 bytes [code generated]
exports[`new code splitting stats output new code splitting stats output/runtime-specific-exports should print correct stats for: NewCodeSplittingStatsOutput 1`] = `
asset main.js 1.8 KiB [emitted] (name: main)
./example.js 70 bytes [built] [code generated]
[no exports]
[no exports used]
./increment.js 251 bytes [built] [code generated]
[exports: decrement, increment, incrementBy2]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Object {
orphan: false,
postOrderIndex: 0,
preOrderIndex: 0,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: null,
Expand Down Expand Up @@ -210,7 +210,7 @@ Object {
orphan: false,
postOrderIndex: 0,
preOrderIndex: 0,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: null,
Expand Down Expand Up @@ -1640,7 +1640,7 @@ Object {
orphan: false,
postOrderIndex: 1,
preOrderIndex: 3,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: 585,
Expand Down Expand Up @@ -1715,7 +1715,7 @@ Object {
orphan: false,
postOrderIndex: 0,
preOrderIndex: 1,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: 958,
Expand Down Expand Up @@ -1848,7 +1848,7 @@ exports.c = require("./c?c=3");,
orphan: false,
postOrderIndex: 2,
preOrderIndex: 2,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: 919,
Expand Down Expand Up @@ -2038,7 +2038,7 @@ exports.c = require("./c?c=3");,
orphan: false,
postOrderIndex: 0,
preOrderIndex: 1,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: 958,
Expand Down Expand Up @@ -2113,7 +2113,7 @@ exports.c = require("./c?c=3");,
orphan: false,
postOrderIndex: 2,
preOrderIndex: 2,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: 919,
Expand Down Expand Up @@ -2194,7 +2194,7 @@ exports.c = require("./c?c=3");,
orphan: false,
postOrderIndex: 1,
preOrderIndex: 3,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: 585,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ modules by path ./ 235 bytes (javascript) 7 bytes (asset)
[no exports used]
ModuleConcatenation bailout: Module is an entry point
./stringModule.js 1 bytes [depth 1] [orphan] [built]
[no exports]
[module unused]
ModuleConcatenation bailout: Module is not an ECMAScript module
esm import ./stringModule [686] ./index.js
Expand Down Expand Up @@ -414,7 +413,6 @@ webpack/runtime/make_namespace_object 280 bytes [code generated]
exports[`statsOutput statsOutput/runtime-specific-exports should print correct stats for 1`] = `
asset main.js 1.8 KiB [emitted] (name: main)
./example.js 70 bytes [built] [code generated]
[no exports]
[no exports used]
./increment.js 251 bytes [built] [code generated]
[exports: decrement, increment, incrementBy2]
Expand Down
2 changes: 0 additions & 2 deletions packages/rspack-test-tools/tests/statsAPICases/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ module.exports = {
chunk {909} (runtime: main) main.js (main) 55 bytes [entry] [rendered]
> ./fixtures/a main
./fixtures/a.js [585] 55 bytes {909} [depth 0] [built] [code generated]
[no exports]
[used exports unknown]
Statement with side_effects in source code at ./fixtures/a.js<LINE_COL_RANGE>
ModuleConcatenation bailout: Module is not an ECMAScript module
entry ./fixtures/a
cjs self exports reference self [585] ./fixtures/a.js
./fixtures/a.js [585] 55 bytes {909} [depth 0] [built] [code generated]
[no exports]
[used exports unknown]
Statement with side_effects in source code at ./fixtures/a.js<LINE_COL_RANGE>
ModuleConcatenation bailout: Module is not an ECMAScript module
Expand Down
4 changes: 2 additions & 2 deletions packages/rspack-test-tools/tests/statsAPICases/chunks.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = {
orphan: false,
postOrderIndex: 1,
preOrderIndex: 1,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: 101,
Expand Down Expand Up @@ -184,7 +184,7 @@ module.exports = {
orphan: false,
postOrderIndex: 0,
preOrderIndex: 0,
providedExports: Array [],
providedExports: null,
reasons: Array [
Object {
moduleId: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,8 @@ exports[`StatsTestCases should print correct stats for concat-and-sideeffects 1`
exports[`StatsTestCases should print correct stats for custom-terser 1`] = `
"asset bundle.js 593 bytes [emitted] [minimized] (name: main)
./index.js 128 bytes [built] [code generated]
[no exports]
[no exports used]
./a.js 49 bytes [built] [code generated]
[no exports]
[used exports unknown]
Rspack x.x.x compiled successfully in X.23"
`;
Expand Down

0 comments on commit 18b77f2

Please sign in to comment.