Skip to content

Commit

Permalink
test: fix some unstable test cases for layer stats (web-infra-dev#8453)
Browse files Browse the repository at this point in the history
fix(test): fix some tests error for layer stats
  • Loading branch information
easy1090 authored Nov 17, 2024
1 parent 1ca6b68 commit 9112e35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,8 @@ Object {
modules: Array [
Object {
children: Array [],
issuer: ,
issuerName: ,
layer: test,
size: 304,
sizes: Object {
Expand All @@ -1668,6 +1670,8 @@ Object {
},
Object {
children: Array [],
issuer: ,
issuerName: ,
layer: legacy,
size: 304,
sizes: Object {
Expand Down
2 changes: 2 additions & 0 deletions packages/rspack-test-tools/tests/statsAPICases/layer-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ module.exports = {
};
const statsData = stats?.toJson(options);
statsData.modules.forEach(mod => {
mod.issuer = '';
mod.issuerName = '';
mod.children = [];
});

Expand Down

0 comments on commit 9112e35

Please sign in to comment.