Migrate from CRA to Vite #1379 #2187
Annotations
6 errors
src/App.test.tsx > App > should dispatch loadMaintenanceState and force refresh the page when maintenance changes:
src/App.test.tsx#L92
Error: expect(received).toBeInTheDocument()
received value must be an HTMLElement or an SVGElement.
❯ src/App.test.tsx:92:52
|
src/loginPage/loginPage.component.test.tsx > Login page component > login page displays and logs an error if fetchMnemonics fails:
src/loginPage/loginPage.component.test.tsx#L380
TypeError: undefined is not a spy or a call to a spy!
Ignored nodes: comments, script, style
<html>
<head />
<body
style=""
>
<div>
<div
class="css-hfb1q2"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 css-1nbadvw-MuiPaper-root"
>
<div
class="MuiAvatar-root MuiAvatar-circular MuiAvatar-colorDefault css-pc1ej3-MuiAvatar-root"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="LockOutlinedIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"
/>
</svg>
</div>
<h1
class="MuiTypography-root MuiTypography-h5 css-95oxo5-MuiTypography-root"
>
login.title
</h1>
</div>
</div>
</div>
</body>
</html>...
❯ src/loginPage/loginPage.component.test.tsx:380:25
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:127:77
❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:121:16
|
src/navigationDrawer/navigationDrawer.component.test.tsx > Navigation drawer component > renders the dark mode logo at the top:
src/navigationDrawer/navigationDrawer.component.test.tsx#L250
Error: expect(element).toHaveAttribute("src", "stfc-logo-white-text.png") // element.getAttribute("src") === "stfc-logo-white-text.png"
Expected the element to have attribute:
src="stfc-logo-white-text.png"
Received:
src="/src/images/stfc-logo-white-text.png"
❯ src/navigationDrawer/navigationDrawer.component.test.tsx:250:37
|
src/routing/routing.component.test.tsx > Routing component > single-spa reloads a plugin when it hasn't loaded for some reason:
src/routing/routing.component.test.tsx#L424
AssertionError: expected "clearInterval" to be called with arguments: [ Any<Number> ]
Received:
1st clearInterval call:
Array [
- Any<Number>,
+ Object {
+ "hasRef": [Function hasRef],
+ "ref": [Function ref],
+ "refed": true,
+ "refresh": [Function refresh],
+ "unref": [Function unref],
+ Symbol(Symbol.toPrimitive): [Function [Symbol.toPrimitive]],
+ },
]
Number of calls: 1
❯ src/routing/routing.component.test.tsx:424:30
|
src/routing/routing.component.test.tsx > Routing component > single-spa reloads a plugin when it hasn't loaded for some reason:
src/routing/routing.component.tsx#L131
TypeError: window.clearInterval is not a function
❯ src/routing/routing.component.tsx:131:14
❯ safelyCallDestroy node_modules/react-dom/cjs/react-dom.development.js:22932:5
❯ commitHookEffectListUnmount node_modules/react-dom/cjs/react-dom.development.js:23100:11
❯ commitPassiveUnmountInsideDeletedTreeOnFiber node_modules/react-dom/cjs/react-dom.development.js:25101:11
❯ commitPassiveUnmountEffectsInsideOfDeletedTree_begin node_modules/react-dom/cjs/react-dom.development.js:25048:5
❯ commitPassiveUnmountEffects_begin node_modules/react-dom/cjs/react-dom.development.js:24956:11
❯ commitPassiveUnmountEffects node_modules/react-dom/cjs/react-dom.development.js:24941:3
❯ flushPassiveEffectsImpl node_modules/react-dom/cjs/react-dom.development.js:27038:3
❯ flushPassiveEffects node_modules/react-dom/cjs/react-dom.development.js:26984:14
❯ commitRootImpl node_modules/react-dom/cjs/react-dom.development.js:26935:5
|
Tests
Process completed with exit code 1.
|