Skip to content

Commit 4570699

Browse files
Remove summary and update unit test baseline
1 parent f40af78 commit 4570699

File tree

3 files changed

+6
-148
lines changed

3 files changed

+6
-148
lines changed

test/jest/console-baseline-integration.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,5 @@
9696
}
9797
},
9898
"generated": "2025-12-04T10:47:12.530Z",
99-
"nodeVersion": "v24.11.1",
100-
"summary": {
101-
"totalWarnings": 436,
102-
"totalFilesWithWarnings": 21,
103-
"byCategory": {
104-
"Reselect: Identity function warnings": 253,
105-
"Reselect: Input stability warnings": 168,
106-
"React Router: Duplicate navigation warnings": 2,
107-
"React: Act warnings (component updates not wrapped)": 2,
108-
"warn: REVIEWER_TEST: This warning should be": 5,
109-
"React: State updates on unmounted components": 2,
110-
"React: DOM nesting violations": 3,
111-
"React: componentWill* lifecycle deprecations": 1
112-
}
113-
}
99+
"nodeVersion": "v24.11.1"
114100
}

test/jest/console-baseline-reporter.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -159,26 +159,10 @@ class ConsoleBaselineReporter {
159159
// Files that didn't run are preserved as-is
160160
}
161161

162-
// Recalculate summary from merged files
163-
let totalWarnings = 0;
164-
const categoryCounts = {};
165-
166-
for (const [, warnings] of Object.entries(mergedFiles)) {
167-
for (const [category, count] of Object.entries(warnings)) {
168-
totalWarnings += count;
169-
categoryCounts[category] = (categoryCounts[category] || 0) + count;
170-
}
171-
}
172-
173162
const baseline = {
174163
generated: new Date().toISOString(),
175164
nodeVersion: process.version,
176165
files: mergedFiles,
177-
summary: {
178-
totalWarnings,
179-
totalFilesWithWarnings: Object.keys(mergedFiles).length,
180-
byCategory: categoryCounts,
181-
},
182166
};
183167

184168
// Format with Prettier to ensure consistent output that passes lint

test/jest/console-baseline-unit.json

Lines changed: 5 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"MetaMask: Balance not found warnings": 18
1515
},
1616
"ui/pages/bridge/prepare/prepare-bridge-page.test.tsx": {
17-
"Third-party: Bindings failed, using pure JS": 1,
1817
"µWebSockets: Compatibility warnings": 1,
1918
"µWebSockets: Fallback to Node implementation": 1,
2019
"Reselect: Identity function warnings": 3,
@@ -70,7 +69,6 @@
7069
"Reselect: Input stability warnings": 1
7170
},
7271
"app/scripts/metamask-controller.test.js": {
73-
"Third-party: Bindings failed, using pure JS": 1,
7472
"µWebSockets: Compatibility warnings": 1,
7573
"µWebSockets: Fallback to Node implementation": 1,
7674
"error: This browser doesn't support cancelAnimationFrame.": 1,
@@ -119,7 +117,6 @@
119117
"React: Act warnings (component updates not wrapped)": 25
120118
},
121119
"app/scripts/controllers/swaps/swaps.test.ts": {
122-
"Third-party: Bindings failed, using pure JS": 1,
123120
"µWebSockets: Compatibility warnings": 1,
124121
"µWebSockets: Fallback to Node implementation": 1
125122
},
@@ -304,7 +301,6 @@
304301
},
305302
"app/scripts/metamask-controller.actions.test.js": {
306303
"error: This browser doesn't support cancelAnimationFrame.": 1,
307-
"Third-party: Bindings failed, using pure JS": 1,
308304
"µWebSockets: Compatibility warnings": 1,
309305
"µWebSockets: Fallback to Node implementation": 1,
310306
"MetaMask: Chain processing errors": 2,
@@ -607,9 +603,7 @@
607603
},
608604
"ui/pages/swaps/index.test.js": {
609605
"Reselect: Identity function warnings": 4,
610-
"Reselect: Input stability warnings": 1,
611-
"error: background[method] is not a function": 1,
612-
"error: Failed to fetch Swaps feature": 1
606+
"Reselect: Input stability warnings": 1
613607
},
614608
"ui/pages/confirm-encryption-public-key/confirm-encryption-public-key.component.test.js": {
615609
"Reselect: Identity function warnings": 2,
@@ -1002,7 +996,6 @@
1002996
"React: DOM nesting violations": 1
1003997
},
1004998
"test/e2e/helpers.test.js": {
1005-
"Third-party: Bindings failed, using pure JS": 1,
1006999
"µWebSockets: Compatibility warnings": 1,
10071000
"µWebSockets: Fallback to Node implementation": 1
10081001
},
@@ -1112,7 +1105,6 @@
11121105
"warn: No tokens found for chainId:": 1
11131106
},
11141107
"shared/modules/transaction.utils.test.js": {
1115-
"Third-party: Bindings failed, using pure JS": 1,
11161108
"µWebSockets: Compatibility warnings": 1,
11171109
"µWebSockets: Fallback to Node implementation": 1
11181110
},
@@ -1756,7 +1748,6 @@
17561748
"React: Act warnings (component updates not wrapped)": 1
17571749
},
17581750
"app/scripts/lib/transaction/metrics.test.ts": {
1759-
"Third-party: Bindings failed, using pure JS": 1,
17601751
"µWebSockets: Compatibility warnings": 1,
17611752
"µWebSockets: Fallback to Node implementation": 1
17621753
},
@@ -1771,7 +1762,6 @@
17711762
"Reselect: Identity function warnings": 1
17721763
},
17731764
"shared/modules/contract-utils.test.js": {
1774-
"Third-party: Bindings failed, using pure JS": 1,
17751765
"µWebSockets: Compatibility warnings": 1,
17761766
"µWebSockets: Fallback to Node implementation": 1
17771767
},
@@ -1844,7 +1834,6 @@
18441834
"Reselect: Input stability warnings": 1
18451835
},
18461836
"shared/modules/metametrics.test.ts": {
1847-
"Third-party: Bindings failed, using pure JS": 1,
18481837
"µWebSockets: Compatibility warnings": 1,
18491838
"µWebSockets: Fallback to Node implementation": 1
18501839
},
@@ -2136,9 +2125,10 @@
21362125
"ui/pages/bridge/prepare/bridge-transaction-settings-modal.test.tsx": {
21372126
"Reselect: Identity function warnings": 3,
21382127
"Reselect: Input stability warnings": 1,
2139-
"MetaMask: Background connection not initialized": 908,
2128+
"MetaMask: Background connection not initialized": 972,
21402129
"error: Warning: You seem to have": 2,
2141-
"Test errors: Fetch failures": 36
2130+
"Test errors: Fetch failures": 36,
2131+
"React: Act warnings (component updates not wrapped)": 2
21422132
},
21432133
"ui/pages/bridge/hooks/useEnableMissingNetwork.test.ts": {
21442134
"MetaMask: Background connection not initialized": 1
@@ -2159,110 +2149,8 @@
21592149
},
21602150
"ui/components/app/rewards/onboarding/OnboardingIntroStep.test.tsx": {
21612151
"error: Warning: React does not recognize": 1
2162-
},
2163-
"app/scripts/controllers/permissions/background-api.test.js": {
2164-
"warn: REVIEWER_TEST: This warning should be": 45
21652152
}
21662153
},
21672154
"generated": "2025-12-04T10:54:13.456Z",
2168-
"nodeVersion": "v24.11.1",
2169-
"summary": {
2170-
"totalWarnings": 7601,
2171-
"totalFilesWithWarnings": 509,
2172-
"byCategory": {
2173-
"Reselect: Identity function warnings": 1199,
2174-
"Reselect: Input stability warnings": 542,
2175-
"React: Act warnings (component updates not wrapped)": 1140,
2176-
"React: PropTypes validation failures": 49,
2177-
"MetaMask: Invalid theme warnings": 50,
2178-
"MetaMask: Background connection not initialized": 4125,
2179-
"warn: Could not find asset type": 9,
2180-
"MetaMask: Balance not found warnings": 20,
2181-
"Third-party: Bindings failed, using pure JS": 9,
2182-
"µWebSockets: Compatibility warnings": 9,
2183-
"µWebSockets: Fallback to Node implementation": 9,
2184-
"error: Warning: A component is changing": 3,
2185-
"Test errors: Uncaught TypeErrors": 12,
2186-
"React: DOM nesting violations": 28,
2187-
"warn: LavaDome: Initiated with \"unsafeOpenModeShadow\" set": 1,
2188-
"warn: LavaDomeDebug(getTextByRoot): Call/include this function for": 1,
2189-
"error: Warning: Encountered two children with": 5,
2190-
"error: This browser doesn't support cancelAnimationFrame.": 2,
2191-
"error: TypeError: Cannot convert undefined or": 2,
2192-
"error: Error: invalid address (argument=\"address\", value=\"0x\",": 2,
2193-
"MetaMask: Chain processing errors": 4,
2194-
"Test errors: Fetch failures": 46,
2195-
"ObjectMultiplex: Malformed chunk warnings": 1,
2196-
"error: { name: 'controller', data: {": 1,
2197-
"MetaMask: MetaMetrics invalid trait types": 6,
2198-
"error: Error: invalid address (argument=\"address\", value=\"\",": 1,
2199-
"MetaMask: Sentry initialization warnings": 1,
2200-
"error: Error: NetworkController state is invalid:": 1,
2201-
"React: componentWill* lifecycle deprecations": 20,
2202-
"React: Missing key props in lists": 22,
2203-
"React: State updates on unmounted components": 5,
2204-
"Test errors: Uncaught Errors": 20,
2205-
"MetaMask: Chain fetch failures": 8,
2206-
"error: Warning: Function components cannot be": 2,
2207-
"error: Error: Not implemented: window.open": 2,
2208-
"React: Act usage warnings (incorrect await)": 42,
2209-
"error: Unexpected key \"DNS\" found in": 2,
2210-
"error: Error: Insufficient number of substitutions": 4,
2211-
"MetaMask: Token metadata warnings": 2,
2212-
"error: Mock Error": 2,
2213-
"error: Error checking send bundle support:": 1,
2214-
"error: background[method] is not a function": 6,
2215-
"error: Failed to fetch Swaps feature": 1,
2216-
"warn: ConfirmEncryptionPublicKey Page: Missing txData prop.": 1,
2217-
"error: Warning: Received `true` for a": 2,
2218-
"error: Warning: React does not recognize": 40,
2219-
"warn: ConfirmDecryptMessage Page: Missing messageData prop.": 1,
2220-
"MetaMask: RPC middleware errors": 10,
2221-
"React: Component update warnings": 1,
2222-
"error: Error: Actions must be plain": 2,
2223-
"error: Warning: Expected `onKeyDown` listener to": 4,
2224-
"error: Unexpected keys \"allTokens\", \"enableEnforcedSimulations\", \"e...": 1,
2225-
"MetaMask: XChain Swaps warnings": 4,
2226-
"error: Warning: React.createElement: type is invalid": 1,
2227-
"error: TypeError: background[method] is not a": 5,
2228-
"warn: No tokens found for chainId:": 1,
2229-
"error: Unexpected key \"internalAccounts\" found in": 1,
2230-
"error: Warning: Received `false` for a": 4,
2231-
"error: Actions must be plain objects.": 1,
2232-
"error: Unexpected key \"processAction\" found in": 1,
2233-
"error: Unexpected key \"state\" found in": 1,
2234-
"warn: Migration 139: typeof state.SelectedNetworkController is": 1,
2235-
"MetaMask: Migration state warnings": 8,
2236-
"warn: newState.NftController must be present": 2,
2237-
"error: Error: No INFURA_PROJECT_ID set!": 2,
2238-
"MetaMask: Migration skipped warnings": 6,
2239-
"error: Unexpected keys \"data\", \"to\", \"chainId\"": 1,
2240-
"error: The above error occurred in": 4,
2241-
"Material-UI: JSS warnings": 4,
2242-
"error: Error: A handler for SnapController:setClientActive": 2,
2243-
"error: Error occurred while creating snap": 1,
2244-
"MetaMask: Backend WebSocket warnings": 1,
2245-
"warn: MetaMetricsController#_identify: No userTraits found": 1,
2246-
"error: Failed to detect if URL": 1,
2247-
"error: Failed to get bearer token": 1,
2248-
"warn: Missing token alert translation for": 1,
2249-
"MetaMask: Multiple instances warning": 1,
2250-
"error: Error: Missing NetworkController state": 1,
2251-
"error: Error: Expected state.NetworkController to be": 1,
2252-
"error: Error: Missing state.NetworkController.networkConfigurations...": 1,
2253-
"error: Error: Expected state.NetworkController.networkConfiguration...": 1,
2254-
"MetaMask: Permission type warnings": 2,
2255-
"warn: Invalid length provided: invalid. Falling": 1,
2256-
"error: Error: No metadata found for": 1,
2257-
"error: Migration 120.5: Invalid SelectedNetworkController state": 1,
2258-
"error: Migration 120.5: Missing SelectedNetworkController domains": 1,
2259-
"error: Migration 120.5: Invalid SelectedNetworkController domains": 1,
2260-
"error: Error: Migration 120.5: Invalid NetworkController": 2,
2261-
"error: Error: Migration 120.5: Invalid networkConfigurationId": 1,
2262-
"error: Migration 126.1: Invalid PhishingController.phishingLists st...": 1,
2263-
"error: Migration 120.2: Invalid SelectedNetworkController state": 4,
2264-
"error: Warning: You seem to have": 2,
2265-
"warn: REVIEWER_TEST: This warning should be": 45
2266-
}
2267-
}
2155+
"nodeVersion": "v24.11.1"
22682156
}

0 commit comments

Comments
 (0)