Enforce stricter types for formatters in MappedMatrixVis
#5818
Annotations
11 errors
src/__tests__/CorePack.test.tsx > visualize scalar compound dataset:
packages/app/src/__tests__/CorePack.test.tsx#L47
TestingLibraryElementError: Unable to find an element with the text: foo. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_root_6dc87e vertical reflex-container"
data-allow-dark-mode=""
data-fullscreen-root="true"
>
<div
class="_sidebarArea_6dc87e vertical reflex-element"
style="flex-grow: 25; flex-shrink: 1; flex-basis: 0%;"
>
<div>
<div
class="_tabBar_8e1f33"
>
<button
aria-label="Explorer"
aria-selected="true"
class="_tab_8e1f33"
role="tab"
type="button"
>
<svg
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<line
x1="8"
x2="21"
y1="6"
y2="6"
/>
<line
x1="8"
x2="21"
y1="12"
y2="12"
/>
<line
x1="8"
x2="21"
y1="18"
y2="18"
/>
<line
x1="3"
x2="3.01"
y1="6"
y2="6"
/>
<line
x1="3"
x2="3.01"
y1="12"
y2="12"
/>
<line
x1="3"
x2="3.01"
y1="18"
y2="18"
/>
</svg>
</button>
<button
aria-label="Search"
aria-selected="false"
class="_tab_8e1f33"
role="tab"
type="button"
>
<svg
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="11"
cy="11"
r="8"
/>
<line
x1="21"
x2="16.65"
y1="21"
y2="16.65"
/>
</svg>
</button>
</div>
<div
class="_explorer_aa1c66"
id="h5web-explorer-tree"
role="tree"
>
<button
aria-selected="false"
class="_fileBtn_aa1c66"
data-path="/"
role="treeitem"
type="button"
>
<svg
class="_fileIcon_aa1c66"
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
/>
<polyline
points="14 2 14 8 20 8"
/>
<line
x1="16"
x2="8"
y1="13"
y2="13"
/>
<line
x1="16
|
src/__tests__/CorePack.test.tsx > visualize scalar compound dataset:
packages/shared/src/guards.ts#L100
Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
Error: Uncaught [TypeError: Expected string]
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
at performUnitOfWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12) TypeError: Expected string
at assertStr (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:100:11)
at assertPrimitiveValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:432:5)
at Module.assertNdArrayValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:447:5)
at Module.getCellFormatter (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/utils.ts:79:3)
at map (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/compound/MappedCompoundVis.tsx:49:5)
at Array.map (<anonymous>)
at MappedCompoundVis (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/compound/MappedCompoundVis.tsx:48:49)
at renderWithHooks (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at Console.l [as error] (file:///home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_@[email protected][email protected]_/node_modules/vitest-fail-on-console/src/index.ts:90:31)
at VirtualConsole.<anonymous> (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at VirtualConsole.emit (node:events:519:28)
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/
|
src/__tests__/CorePack.test.tsx > visualize 1D compound dataset:
packages/app/src/__tests__/CorePack.test.tsx#L96
TestingLibraryElementError: Unable to find an element with the text: Argon. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_root_6dc87e vertical reflex-container"
data-allow-dark-mode=""
data-fullscreen-root="true"
>
<div
class="_sidebarArea_6dc87e vertical reflex-element"
style="flex-grow: 25; flex-shrink: 1; flex-basis: 0%;"
>
<div>
<div
class="_tabBar_8e1f33"
>
<button
aria-label="Explorer"
aria-selected="true"
class="_tab_8e1f33"
role="tab"
type="button"
>
<svg
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<line
x1="8"
x2="21"
y1="6"
y2="6"
/>
<line
x1="8"
x2="21"
y1="12"
y2="12"
/>
<line
x1="8"
x2="21"
y1="18"
y2="18"
/>
<line
x1="3"
x2="3.01"
y1="6"
y2="6"
/>
<line
x1="3"
x2="3.01"
y1="12"
y2="12"
/>
<line
x1="3"
x2="3.01"
y1="18"
y2="18"
/>
</svg>
</button>
<button
aria-label="Search"
aria-selected="false"
class="_tab_8e1f33"
role="tab"
type="button"
>
<svg
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="11"
cy="11"
r="8"
/>
<line
x1="21"
x2="16.65"
y1="21"
y2="16.65"
/>
</svg>
</button>
</div>
<div
class="_explorer_aa1c66"
id="h5web-explorer-tree"
role="tree"
>
<button
aria-selected="false"
class="_fileBtn_aa1c66"
data-path="/"
role="treeitem"
type="button"
>
<svg
class="_fileIcon_aa1c66"
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
/>
<polyline
points="14 2 14 8 20 8"
/>
<line
x1="16"
x2="8"
y1="13"
y2="13"
/>
<line
x1="
|
src/__tests__/CorePack.test.tsx > visualize 1D compound dataset:
packages/shared/src/guards.ts#L100
Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
Error: Uncaught [TypeError: Expected string]
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
at performUnitOfWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12) TypeError: Expected string
at assertStr (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:100:11)
at assertPrimitiveValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:432:5)
at Module.assertNdArrayValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:447:5)
at Module.getCellFormatter (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/utils.ts:79:3)
at map (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/compound/MappedCompoundVis.tsx:49:5)
at Array.map (<anonymous>)
at MappedCompoundVis (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/compound/MappedCompoundVis.tsx:48:49)
at renderWithHooks (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at Console.l [as error] (file:///home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_@[email protected][email protected]_/node_modules/vitest-fail-on-console/src/index.ts:90:31)
at VirtualConsole.<anonymous> (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at VirtualConsole.emit (node:events:519:28)
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/
|
src/__tests__/CorePack.test.tsx > visualize 2D dataset as matrix:
packages/app/src/__tests__/CorePack.test.tsx#L123
TestingLibraryElementError: Unable to find an element with the text: 4.000e+2. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_root_6dc87e vertical reflex-container"
data-allow-dark-mode=""
data-fullscreen-root="true"
>
<div
class="_sidebarArea_6dc87e vertical reflex-element"
style="flex-grow: 25; flex-shrink: 1; flex-basis: 0%;"
>
<div>
<div
class="_tabBar_8e1f33"
>
<button
aria-label="Explorer"
aria-selected="true"
class="_tab_8e1f33"
role="tab"
type="button"
>
<svg
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<line
x1="8"
x2="21"
y1="6"
y2="6"
/>
<line
x1="8"
x2="21"
y1="12"
y2="12"
/>
<line
x1="8"
x2="21"
y1="18"
y2="18"
/>
<line
x1="3"
x2="3.01"
y1="6"
y2="6"
/>
<line
x1="3"
x2="3.01"
y1="12"
y2="12"
/>
<line
x1="3"
x2="3.01"
y1="18"
y2="18"
/>
</svg>
</button>
<button
aria-label="Search"
aria-selected="false"
class="_tab_8e1f33"
role="tab"
type="button"
>
<svg
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="11"
cy="11"
r="8"
/>
<line
x1="21"
x2="16.65"
y1="21"
y2="16.65"
/>
</svg>
</button>
</div>
<div
class="_explorer_aa1c66"
id="h5web-explorer-tree"
role="tree"
>
<button
aria-selected="false"
class="_fileBtn_aa1c66"
data-path="/"
role="treeitem"
type="button"
>
<svg
class="_fileIcon_aa1c66"
fill="none"
height="1em"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
/>
<polyline
points="14 2 14 8 20 8"
/>
<line
x1="16"
x2="8"
y1="13"
y2="13"
/>
<line
x
|
src/__tests__/CorePack.test.tsx > visualize 2D dataset as matrix:
packages/shared/src/guards.ts#L85
Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
Error: Uncaught [TypeError: Expected number]
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
at performUnitOfWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12) TypeError: Expected number
at assertNum (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:85:11)
at assertPrimitiveValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:430:5)
at Module.assertNdArrayValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:447:5)
at Module.getCellFormatter (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/utils.ts:62:5)
at MappedMatrixVis (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/MappedMatrixVis.tsx:35:25)
at renderWithHooks (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at HTMLUnknownElement.callCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4164:14)
at HTMLUnknownElement.callTheUserObjectsOperation (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at Console.l [as error] (file:///home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_@[email protected][email protected]_/node_modules/vitest-fail-on-console/src/index.ts:90:31)
at VirtualConsole.<anonymous> (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at VirtualConsole.emit (node:events:519:28)
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm
|
src/__tests__/DimensionMapper.test.tsx > display one slider and two mappers when visualizing 3D dataset as Matrix:
packages/shared/src/guards.ts#L85
Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
Error: Uncaught [TypeError: Expected number]
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
at performUnitOfWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12) TypeError: Expected number
at assertNum (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:85:11)
at assertPrimitiveValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:430:5)
at Module.assertNdArrayValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:447:5)
at Module.getCellFormatter (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/utils.ts:62:5)
at MappedMatrixVis (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/MappedMatrixVis.tsx:35:25)
at renderWithHooks (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at HTMLUnknownElement.callCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4164:14)
at HTMLUnknownElement.callTheUserObjectsOperation (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at Console.l [as error] (file:///home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_@[email protected][email protected]_/node_modules/vitest-fail-on-console/src/index.ts:90:31)
at VirtualConsole.<anonymous> (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at VirtualConsole.emit (node:events:519:28)
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm
|
src/__tests__/DimensionMapper.test.tsx > maintain mapping when switching to visualization with same axes count:
packages/shared/src/guards.ts#L85
Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
Error: Uncaught [TypeError: Expected number]
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
at performUnitOfWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12) TypeError: Expected number
at assertNum (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:85:11)
at assertPrimitiveValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:430:5)
at Module.assertNdArrayValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:447:5)
at Module.getCellFormatter (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/utils.ts:62:5)
at MappedMatrixVis (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/MappedMatrixVis.tsx:35:25)
at renderWithHooks (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at HTMLUnknownElement.callCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4164:14)
at HTMLUnknownElement.callTheUserObjectsOperation (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at Console.l [as error] (file:///home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_@[email protected][email protected]_/node_modules/vitest-fail-on-console/src/index.ts:90:31)
at VirtualConsole.<anonymous> (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at VirtualConsole.emit (node:events:519:28)
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm
|
src/__tests__/VisSelector.test.tsx > choose most advanced visualization when switching between datasets:
packages/shared/src/guards.ts#L100
Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
Error: Uncaught [TypeError: Expected string]
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
at performUnitOfWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12) TypeError: Expected string
at assertStr (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:100:11)
at assertPrimitiveValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:432:5)
at Module.assertNdArrayValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:447:5)
at Module.getCellFormatter (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/utils.ts:79:3)
at map (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/compound/MappedCompoundVis.tsx:49:5)
at Array.map (<anonymous>)
at MappedCompoundVis (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/compound/MappedCompoundVis.tsx:48:49)
at renderWithHooks (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at Console.l [as error] (file:///home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_@[email protected][email protected]_/node_modules/vitest-fail-on-console/src/index.ts:90:31)
at VirtualConsole.<anonymous> (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at VirtualConsole.emit (node:events:519:28)
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/
|
src/__tests__/VisSelector.test.tsx > remember preferred visualization when switching between datasets:
packages/shared/src/guards.ts#L85
Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
Error: Uncaught [TypeError: Expected number]
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
at performUnitOfWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12) TypeError: Expected number
at assertNum (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:85:11)
at assertPrimitiveValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:430:5)
at Module.assertNdArrayValue (/home/runner/work/h5web/h5web/packages/shared/src/guards.ts:447:5)
at Module.getCellFormatter (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/utils.ts:62:5)
at MappedMatrixVis (/home/runner/work/h5web/h5web/packages/app/src/vis-packs/core/matrix/MappedMatrixVis.tsx:35:25)
at renderWithHooks (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18)
at mountIndeterminateComponent (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13)
at beginWork (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16)
at HTMLUnknownElement.callCallback (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:4164:14)
at HTMLUnknownElement.callTheUserObjectsOperation (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at Console.l [as error] (file:///home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_@[email protected][email protected]_/node_modules/vitest-fail-on-console/src/index.ts:90:31)
at VirtualConsole.<anonymous> (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at VirtualConsole.emit (node:events:519:28)
at reportException (/home/runner/work/h5web/h5web/node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
at innerInvokeEventListeners (/home/runner/work/h5web/h5web/node_modules/.pnpm
|
e2e
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
cypress
|
514 KB |
|