Created
April 30, 2026 17:56
-
-
Save jwmatthews/9d24fd84334526723ffd1982fa2f781c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npx jest | |
| FAIL tests/dist.test.ts (8.573 s) | |
| ● Build distribution › should match a specific file output | |
| expect(received).toMatchSnapshot(hint) | |
| Snapshot name: `Build distribution should match a specific file output: dist-output 1` | |
| - Snapshot - 11 | |
| + Received + 1 | |
| @@ -8,25 +8,15 @@ | |
| "./build/app*css", | |
| "./build/app*js", | |
| "./build/favicon.ico", | |
| "./build/fonts/078865af129336cde269.woff2", | |
| "./build/fonts/18ca482120faaa701d8b.woff2", | |
| - "./build/fonts/57234ce675330fa60781.woff2", | |
| - "./build/fonts/66ac08a9a7d29ae51581.woff2", | |
| + "./build/fonts/463d4ddeac4dae277fc4.woff2", | |
| "./build/fonts/6e3027616d8de472723c.woff2", | |
| "./build/fonts/813182e673c38ef5ee4b.woff2", | |
| - "./build/fonts/841cdd0ebb3d9038a7e7.woff2", | |
| - "./build/fonts/9c02e9a1e10fbc86466d.woff2", | |
| - "./build/fonts/aa07940756a803076b34.woff2", | |
| - "./build/fonts/b01a8365f7214919a9c3.woff2", | |
| - "./build/fonts/b36d694117bf12672d49.woff2", | |
| - "./build/fonts/c06f4d6490c387fd1d92.woff2", | |
| "./build/fonts/c33624692c8b41e36780.woff2", | |
| - "./build/fonts/d8d66dd2281610675aca.woff2", | |
| - "./build/fonts/e0f30d27bec7c8dbb6fc.woff2", | |
| "./build/fonts/e4faf134e53e0f37296b.woff2", | |
| - "./build/fonts/ed292ec87cce0d76fd3c.woff2", | |
| "./build/images/133911d429584887f5c7.svg", | |
| "./build/images/4ca682d556b7bf59f5c6.svg", | |
| "./build/images/c0ce9e7676e8e8f83167.png", | |
| "./build/index.html", | |
| "./build/locales/en.json", | |
| 17 | .sort(); | |
| 18 | | |
| > 19 | expect(replacedGeneratedFilesMinsHash).toMatchSnapshot('dist-output'); | |
| | ^ | |
| 20 | }); | |
| 21 | | |
| 22 | it('should not contain references to localhost', () => { | |
| at Object.<anonymous> (tests/dist.test.ts:19:44) | |
| › 1 snapshot failed. | |
| FAIL tests/code.test.ts (8.671 s) | |
| ● General code checks › should only have specific console.[warn|log|info|error] methods | |
| expect(received).toMatchSnapshot(hint) | |
| Snapshot name: `General code checks should only have specific console.[warn|log|info|error] methods: console methods 1` | |
| - Snapshot - 5 | |
| + Received + 5 | |
| @@ -30,11 +30,11 @@ | |
| "vendor/react-table-batteries/hooks/storage/useStorage.ts:14: console.error(error);", | |
| "vendor/react-table-batteries/hooks/storage/useStorage.ts:40: console.error(error);", | |
| "views/credentials/viewCredentialsList.tsx:399: console.error(err);", | |
| "views/credentials/viewCredentialsList.tsx:416: console.error(err);", | |
| "views/scans/viewScansList.tsx:262: console.error(err);", | |
| - "views/sources/addSourceModal.tsx:139: console.error(err);", | |
| - "views/sources/viewSourcesList.tsx:327: console.error(err);", | |
| - "views/sources/viewSourcesList.tsx:498: console.error(err);", | |
| - "views/sources/viewSourcesList.tsx:515: console.error(err);", | |
| - "views/sources/viewSourcesList.tsx:531: console.error(err);", | |
| + "views/sources/addSourceModal.tsx:141: console.error(err);", | |
| + "views/sources/viewSourcesList.tsx:328: console.error(err);", | |
| + "views/sources/viewSourcesList.tsx:502: console.error(err);", | |
| + "views/sources/viewSourcesList.tsx:519: console.error(err);", | |
| + "views/sources/viewSourcesList.tsx:535: console.error(err);", | |
| ] | |
| 14 | .trim() | |
| 15 | .split(/[\n\r]/g) | |
| > 16 | ).toMatchSnapshot('console methods'); | |
| | ^ | |
| 17 | }); | |
| 18 | }); | |
| 19 | | |
| at Object.<anonymous> (tests/code.test.ts:16:7) | |
| › 1 snapshot failed. | |
| PASS src/vendor/react-table-batteries/components/ExtendedButton/__tests__/ExtendedButton.test.tsx | |
| PASS src/components/contextIcon/__tests__/contextIcon.test.tsx (9.453 s) | |
| PASS src/components/aboutModal/__tests__/aboutModal.test.tsx | |
| PASS src/components/actionMenu/__tests__/actionMenu.test.tsx | |
| PASS src/views/scans/__tests__/showAggregateReportModal.test.tsx (10.659 s) | |
| PASS src/components/typeAheadCheckboxes/__tests__/typeaheadCheckboxes.test.tsx | |
| PASS src/components/refreshTimeButton/__tests__/refreshTimeButton.test.tsx | |
| PASS src/views/sources/__tests__/showSourceConnectionsModal.test.tsx (12.015 s) | |
| PASS src/views/scans/__tests__/showScansModal.test.tsx (12.053 s) | |
| PASS src/components/viewLayout/__tests__/viewLayout.test.tsx (12.218 s) | |
| PASS src/components/login/__tests__/login.test.tsx | |
| PASS src/components/errorMessage/__tests__/errorMessage.test.tsx | |
| PASS src/views/credentials/__tests__/addCredentialModal.test.tsx (12.456 s) | |
| PASS src/components/simpleDropdown/__tests__/simpleDropdown.test.tsx | |
| PASS src/components/viewLayout/__tests__/viewLayoutToolbar.test.tsx | |
| PASS src/helpers/__tests__/helpers.test.ts | |
| PASS src/hooks/__tests__/useSourceApi.test.ts | |
| PASS src/hooks/__tests__/useStatusApi.test.ts | |
| PASS src/hooks/__tests__/useLoginApi.test.ts | |
| PASS src/hooks/__tests__/useScanApi.test.ts | |
| PASS src/__tests__/app.test.tsx | |
| PASS src/hooks/__tests__/useAlerts.test.ts | |
| PASS src/hooks/__tests__/useCredentialApi.test.ts | |
| PASS src/components/i18n/__test__/i18n.test.tsx | |
| PASS src/helpers/__tests__/apiHelpers.test.ts | |
| PASS src/views/credentials/__tests__/useCredentialsQuery.test.ts | |
| PASS src/views/sources/__tests__/useSourcesQuery.test.ts | |
| PASS src/__tests__/routes.test.tsx | |
| PASS src/components/viewLayout/__tests__/viewLayoutToolbarInteractions.test.tsx | |
| PASS src/views/notFound/__tests__/notFound.test.tsx | |
| PASS src/views/sources/__tests__/addSourcesScanModal.test.tsx | |
| PASS src/views/sources/__tests__/addSourceModal.test.tsx (13.68 s) | |
| PASS src/components/viewLayout/__tests__/viewLayoutNavGroup.test.tsx | |
| Summary of all failing tests | |
| FAIL tests/dist.test.ts (8.573 s) | |
| ● Build distribution › should match a specific file output | |
| expect(received).toMatchSnapshot(hint) | |
| Snapshot name: `Build distribution should match a specific file output: dist-output 1` | |
| - Snapshot - 11 | |
| + Received + 1 | |
| @@ -8,25 +8,15 @@ | |
| "./build/app*css", | |
| "./build/app*js", | |
| "./build/favicon.ico", | |
| "./build/fonts/078865af129336cde269.woff2", | |
| "./build/fonts/18ca482120faaa701d8b.woff2", | |
| - "./build/fonts/57234ce675330fa60781.woff2", | |
| - "./build/fonts/66ac08a9a7d29ae51581.woff2", | |
| + "./build/fonts/463d4ddeac4dae277fc4.woff2", | |
| "./build/fonts/6e3027616d8de472723c.woff2", | |
| "./build/fonts/813182e673c38ef5ee4b.woff2", | |
| - "./build/fonts/841cdd0ebb3d9038a7e7.woff2", | |
| - "./build/fonts/9c02e9a1e10fbc86466d.woff2", | |
| - "./build/fonts/aa07940756a803076b34.woff2", | |
| - "./build/fonts/b01a8365f7214919a9c3.woff2", | |
| - "./build/fonts/b36d694117bf12672d49.woff2", | |
| - "./build/fonts/c06f4d6490c387fd1d92.woff2", | |
| "./build/fonts/c33624692c8b41e36780.woff2", | |
| - "./build/fonts/d8d66dd2281610675aca.woff2", | |
| - "./build/fonts/e0f30d27bec7c8dbb6fc.woff2", | |
| "./build/fonts/e4faf134e53e0f37296b.woff2", | |
| - "./build/fonts/ed292ec87cce0d76fd3c.woff2", | |
| "./build/images/133911d429584887f5c7.svg", | |
| "./build/images/4ca682d556b7bf59f5c6.svg", | |
| "./build/images/c0ce9e7676e8e8f83167.png", | |
| "./build/index.html", | |
| "./build/locales/en.json", | |
| 17 | .sort(); | |
| 18 | | |
| > 19 | expect(replacedGeneratedFilesMinsHash).toMatchSnapshot('dist-output'); | |
| | ^ | |
| 20 | }); | |
| 21 | | |
| 22 | it('should not contain references to localhost', () => { | |
| at Object.<anonymous> (tests/dist.test.ts:19:44) | |
| FAIL tests/code.test.ts (8.671 s) | |
| ● General code checks › should only have specific console.[warn|log|info|error] methods | |
| expect(received).toMatchSnapshot(hint) | |
| Snapshot name: `General code checks should only have specific console.[warn|log|info|error] methods: console methods 1` | |
| - Snapshot - 5 | |
| + Received + 5 | |
| @@ -30,11 +30,11 @@ | |
| "vendor/react-table-batteries/hooks/storage/useStorage.ts:14: console.error(error);", | |
| "vendor/react-table-batteries/hooks/storage/useStorage.ts:40: console.error(error);", | |
| "views/credentials/viewCredentialsList.tsx:399: console.error(err);", | |
| "views/credentials/viewCredentialsList.tsx:416: console.error(err);", | |
| "views/scans/viewScansList.tsx:262: console.error(err);", | |
| - "views/sources/addSourceModal.tsx:139: console.error(err);", | |
| - "views/sources/viewSourcesList.tsx:327: console.error(err);", | |
| - "views/sources/viewSourcesList.tsx:498: console.error(err);", | |
| - "views/sources/viewSourcesList.tsx:515: console.error(err);", | |
| - "views/sources/viewSourcesList.tsx:531: console.error(err);", | |
| + "views/sources/addSourceModal.tsx:141: console.error(err);", | |
| + "views/sources/viewSourcesList.tsx:328: console.error(err);", | |
| + "views/sources/viewSourcesList.tsx:502: console.error(err);", | |
| + "views/sources/viewSourcesList.tsx:519: console.error(err);", | |
| + "views/sources/viewSourcesList.tsx:535: console.error(err);", | |
| ] | |
| 14 | .trim() | |
| 15 | .split(/[\n\r]/g) | |
| > 16 | ).toMatchSnapshot('console methods'); | |
| | ^ | |
| 17 | }); | |
| 18 | }); | |
| 19 | | |
| at Object.<anonymous> (tests/code.test.ts:16:7) | |
| Snapshot Summary | |
| › 2 snapshots failed from 2 test suites. Inspect your code changes or run `npm run npx -- -u` to update them. | |
| Test Suites: 2 failed, 33 passed, 35 total | |
| Tests: 2 failed, 263 passed, 265 total | |
| Snapshots: 2 failed, 247 passed, 249 total | |
| Time: 14.747 s | |
| Ran all test suites. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment