Use vite to replace webpack etc #1204
Annotations
21 errors and 2 warnings
__tests__/src/components/AttributionPanel.test.js > AttributionPanel > renders the manifest logo:
__tests__/src/components/AttributionPanel.test.js#L51
Error: expect(received).toBeInTheDocument()
received value must be an HTMLElement or an SVGElement.
Ignored nodes: comments, script, style
<html>
<head />
<body
class=""
>
<div>
<aside
aria-label="attributionTitle"
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation1 mirador-companion-window-null mirador-attribution-panel css-12xhof0-MuiPaper-root-CompanionWindow-root"
>
<div
class="css-1kx3svr-CompanionWindow-resize react-draggable"
style="position: inherit; user-select: auto; width: 235px; height: 100%; display: inherit; top: 0px; left: 0px; cursor: auto; transform: translate(NaNpx,NaNpx); max-width: 9007199254740991px; max-height: 9007199254740991px; min-width: 100px; min-height: 50px; box-sizing: border-box; flex-shrink: 0;"
>
<div />
<div
class="MuiToolbar-root MuiToolbar-dense mirador-companion-window-header css-1bwaa8q-MuiToolbar-root-CompanionWindow-toolbar"
>
<h3
class="MuiTypography-root MuiTypography-h3 css-14jg5k2-MuiTypography-root-CompanionWindow-title"
>
attributionTitle
</h3>
<button
aria-label="moveCompanionWindowToBottom"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-1kzf70w-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root-CompanionWindow-positionButton"
data-mui-internal-clone-element="true"
tabindex="0"
type="button"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="DragIndicatorSharpIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
/>
</svg>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
<button
aria-label="closeCompanionWindow"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-u4i1wu-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root-CompanionWindow-closeButton"
data-mui-internal-clone-element="true"
tabindex="0"
type="button"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="CloseSharpIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
/>
</svg>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 mirador-scrollto-scrollable css-ai1ekc-MuiPaper-root-CompanionWindow-contents"
>
<div
class="css-1h7qrk0-CompanionWindowSection-root"
parentactions="[object Object]"
/>
<div
class="css-1h7qrk0-CompanionWindowSection-root"
parentactions="[object Object]"
/>
</div>
<div />
</div>
</aside>
</div>
</body>
</html>...
❯ __tests__/src/components/AttributionPanel.test.js:51:66
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12
|
__tests__/src/components/OpenSeadragonViewer.test.js > OpenSeadragonViewer > componentDidUpdate > calls the OSD viewport panTo and zoomTo with the component state and forces a redraw:
__tests__/src/components/OpenSeadragonViewer.test.js#L286
AssertionError: expected +0 to be 90 // Object.is equality
- Expected
+ Received
- 90
+ 0
❯ __tests__/src/components/OpenSeadragonViewer.test.js:286:45
|
__tests__/src/components/SearchPanelControls.test.js > SearchPanelControls > submits a search when an autocomplete suggestion is picked:
__tests__/src/components/SearchPanelControls.test.js#L28
TypeError: fetch.mockResponse is not a function
❯ __tests__/src/components/SearchPanelControls.test.js:28:11
|
__tests__/src/lib/CanvasAnnotationDisplay.test.js > CanvasAnnotationDisplay > svgContext > draws the paths with selected arguments:
src/lib/CanvasAnnotationDisplay.js#L59
TypeError: Cannot read properties of null (reading 'split')
❯ src/lib/CanvasAnnotationDisplay.js:59:83
❯ CanvasAnnotationDisplay.svgContext src/lib/CanvasAnnotationDisplay.js:46:24
❯ __tests__/src/lib/CanvasAnnotationDisplay.test.js:86:15
|
__tests__/src/lib/CanvasAnnotationDisplay.test.js > CanvasAnnotationDisplay > svgContext > resets the color if selected rather than using the SVG color:
src/lib/CanvasAnnotationDisplay.js#L59
TypeError: Cannot read properties of null (reading 'split')
❯ src/lib/CanvasAnnotationDisplay.js:59:83
❯ CanvasAnnotationDisplay.svgContext src/lib/CanvasAnnotationDisplay.js:46:24
❯ __tests__/src/lib/CanvasAnnotationDisplay.test.js:109:15
|
__tests__/src/lib/MiradorViewer.test.js > MiradorViewer > render > passes props through to the App component:
__tests__/src/lib/MiradorViewer.test.js#L137
TestingLibraryElementError: Unable to find an element by: [data-testid="plugin"]
Ignored nodes: comments, script, style
<body>
<div
data-testid="container"
id="mirador"
/>
<div>
<div
class="fullscreen"
>
<div />
</div>
</div>
</body>
Ignored nodes: comments, script, style
<body>
<div
data-testid="container"
id="mirador"
/>
<div>
<div
class="fullscreen"
>
<div />
</div>
</div>
</body>
❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33
❯ __tests__/src/lib/MiradorViewer.test.js:137:27
|
__tests__/src/lib/OpenSeadragonCanvasOverlay.test.js > OpenSeadragonCanvasOverlay > clear > calls getContext and clearRect on canvas:
__tests__/src/lib/OpenSeadragonCanvasOverlay.test.js#L75
AssertionError: expected "spy" to be called 1 times, but got 2 times
❯ __tests__/src/lib/OpenSeadragonCanvasOverlay.test.js:75:27
|
__tests__/src/sagas/iiif.test.js > IIIF sagas > fetchManifest > fetches a IIIF manifest:
__tests__/src/sagas/iiif.test.js#L21
TypeError: fetch.mockResponseOnce is not a function
❯ __tests__/src/sagas/iiif.test.js:21:13
|
__tests__/src/sagas/iiif.test.js > IIIF sagas > fetchManifest > handles failures:
__tests__/src/sagas/iiif.test.js#L39
TypeError: fetch.mockResponseOnce is not a function
❯ __tests__/src/sagas/iiif.test.js:39:13
|
__tests__/src/sagas/iiif.test.js > IIIF sagas > fetchManifest > supports request configuration preprocessors:
__tests__/src/sagas/iiif.test.js#L53
TypeError: fetch.once is not a function
❯ __tests__/src/sagas/iiif.test.js:53:13
|
build (18.x)
The job was canceled because "_20_x" failed.
|
__tests__/src/components/AttributionPanel.test.js > AttributionPanel > renders the manifest logo:
__tests__/src/components/AttributionPanel.test.js#L51
Error: expect(received).toBeInTheDocument()
received value must be an HTMLElement or an SVGElement.
Ignored nodes: comments, script, style
<html>
<head />
<body
class=""
>
<div>
<aside
aria-label="attributionTitle"
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation1 mirador-companion-window-null mirador-attribution-panel css-12xhof0-MuiPaper-root-CompanionWindow-root"
>
<div
class="css-1kx3svr-CompanionWindow-resize react-draggable"
style="position: inherit; user-select: auto; width: 235px; height: 100%; display: inherit; top: 0px; left: 0px; cursor: auto; transform: translate(NaNpx,NaNpx); max-width: 9007199254740991px; max-height: 9007199254740991px; min-width: 100px; min-height: 50px; box-sizing: border-box; flex-shrink: 0;"
>
<div />
<div
class="MuiToolbar-root MuiToolbar-dense mirador-companion-window-header css-1bwaa8q-MuiToolbar-root-CompanionWindow-toolbar"
>
<h3
class="MuiTypography-root MuiTypography-h3 css-14jg5k2-MuiTypography-root-CompanionWindow-title"
>
attributionTitle
</h3>
<button
aria-label="moveCompanionWindowToBottom"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-1kzf70w-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root-CompanionWindow-positionButton"
data-mui-internal-clone-element="true"
tabindex="0"
type="button"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="DragIndicatorSharpIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
/>
</svg>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
<button
aria-label="closeCompanionWindow"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge css-u4i1wu-MuiButtonBase-root-MuiIconButton-root-MiradorMenuButton-root-CompanionWindow-closeButton"
data-mui-internal-clone-element="true"
tabindex="0"
type="button"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="CloseSharpIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
/>
</svg>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 mirador-scrollto-scrollable css-ai1ekc-MuiPaper-root-CompanionWindow-contents"
>
<div
class="css-1h7qrk0-CompanionWindowSection-root"
parentactions="[object Object]"
/>
<div
class="css-1h7qrk0-CompanionWindowSection-root"
parentactions="[object Object]"
/>
</div>
<div />
</div>
</aside>
</div>
</body>
</html>...
❯ __tests__/src/components/AttributionPanel.test.js:51:66
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12
|
__tests__/src/components/OpenSeadragonViewer.test.js > OpenSeadragonViewer > componentDidUpdate > calls the OSD viewport panTo and zoomTo with the component state and forces a redraw:
__tests__/src/components/OpenSeadragonViewer.test.js#L286
AssertionError: expected +0 to be 90 // Object.is equality
- Expected
+ Received
- 90
+ 0
❯ __tests__/src/components/OpenSeadragonViewer.test.js:286:45
|
__tests__/src/components/SearchPanelControls.test.js > SearchPanelControls > submits a search when an autocomplete suggestion is picked:
__tests__/src/components/SearchPanelControls.test.js#L28
TypeError: fetch.mockResponse is not a function
❯ __tests__/src/components/SearchPanelControls.test.js:28:11
|
__tests__/src/lib/CanvasAnnotationDisplay.test.js > CanvasAnnotationDisplay > svgContext > draws the paths with selected arguments:
src/lib/CanvasAnnotationDisplay.js#L59
TypeError: Cannot read properties of null (reading 'split')
❯ src/lib/CanvasAnnotationDisplay.js:59:83
❯ CanvasAnnotationDisplay.svgContext src/lib/CanvasAnnotationDisplay.js:46:24
❯ __tests__/src/lib/CanvasAnnotationDisplay.test.js:86:15
|
__tests__/src/lib/CanvasAnnotationDisplay.test.js > CanvasAnnotationDisplay > svgContext > resets the color if selected rather than using the SVG color:
src/lib/CanvasAnnotationDisplay.js#L59
TypeError: Cannot read properties of null (reading 'split')
❯ src/lib/CanvasAnnotationDisplay.js:59:83
❯ CanvasAnnotationDisplay.svgContext src/lib/CanvasAnnotationDisplay.js:46:24
❯ __tests__/src/lib/CanvasAnnotationDisplay.test.js:109:15
|
__tests__/src/lib/MiradorViewer.test.js > MiradorViewer > render > passes props through to the App component:
__tests__/src/lib/MiradorViewer.test.js#L137
TestingLibraryElementError: Unable to find an element by: [data-testid="plugin"]
Ignored nodes: comments, script, style
<body>
<div
data-testid="container"
id="mirador"
/>
<div>
<div
class="fullscreen"
>
<div />
</div>
</div>
</body>
Ignored nodes: comments, script, style
<body>
<div
data-testid="container"
id="mirador"
/>
<div>
<div
class="fullscreen"
>
<div />
</div>
</div>
</body>
❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33
❯ __tests__/src/lib/MiradorViewer.test.js:137:27
|
__tests__/src/lib/OpenSeadragonCanvasOverlay.test.js > OpenSeadragonCanvasOverlay > clear > calls getContext and clearRect on canvas:
__tests__/src/lib/OpenSeadragonCanvasOverlay.test.js#L75
AssertionError: expected "spy" to be called 1 times, but got 2 times
❯ __tests__/src/lib/OpenSeadragonCanvasOverlay.test.js:75:27
|
__tests__/src/sagas/iiif.test.js > IIIF sagas > fetchManifest > fetches a IIIF manifest:
__tests__/src/sagas/iiif.test.js#L21
TypeError: fetch.mockResponseOnce is not a function
❯ __tests__/src/sagas/iiif.test.js:21:13
|
__tests__/src/sagas/iiif.test.js > IIIF sagas > fetchManifest > handles failures:
__tests__/src/sagas/iiif.test.js#L39
TypeError: fetch.mockResponseOnce is not a function
❯ __tests__/src/sagas/iiif.test.js:39:13
|
__tests__/src/sagas/iiif.test.js > IIIF sagas > fetchManifest > supports request configuration preprocessors:
__tests__/src/sagas/iiif.test.js#L53
TypeError: fetch.once is not a function
❯ __tests__/src/sagas/iiif.test.js:53:13
|
build (20.x):
setupTest.js#L3
'createFetchMock' is defined but never used
|
build (18.x):
setupTest.js#L3
'createFetchMock' is defined but never used
|