Skip to content

fix: typescript issues #6809

fix: typescript issues

fix: typescript issues #6809

Status Failure
Total duration 8m 57s
Artifacts 2

tests.yml

on: push
Unit test
48s
Unit test
Matrix: Integration test
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 7 warnings
src/tests/unit/availability.test.tsx > usePhysicalAvailability tests > Test that if one material is a book and is available, the hook returns that the material is available: src/tests/unit/availability.test.tsx#L72
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/availability.test.tsx:72:24
src/tests/unit/availability.test.tsx > usePhysicalAvailability tests > Test that if the material is a book amd no material is available the hook returns that it is unavailable: src/tests/unit/availability.test.tsx#L112
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/availability.test.tsx:112:24
src/tests/unit/availability.test.tsx > usePhysicalAvailability tests > Test that if the material is an article it will always be available even though the remote service tells otherwise: src/tests/unit/availability.test.tsx#L152
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/availability.test.tsx:152:24
src/tests/unit/availability.test.tsx > usePhysicalAvailability tests > Test that if the material is an article it will always be available even though the remote service tells otherwise: src/tests/unit/availability.test.tsx#L192
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/availability.test.tsx:192:24
src/tests/unit/availability.test.tsx > usePhysicalAvailability tests > Test that if the hook is not enabled it should return null statuses: src/tests/unit/availability.test.tsx#L219
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/availability.test.tsx:219:24
src/tests/unit/availability.test.tsx > useOnlineAvailabilityData tests > If the useGetV1ProductsIdentifier service tells us that the material is NOT `costFree` (not a blue title) and the material belongs to 'Ereol' (the access param) the Publizon product status should dictate the availability : src/tests/unit/availability.test.tsx#L298
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/availability.test.tsx:298:37
src/tests/unit/availability.test.tsx > useOnlineAvailabilityData tests > Test that if the material is cost free nothing else matters: src/tests/unit/availability.test.tsx#L400
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/availability.test.tsx:400:24
src/tests/unit/availability.test.tsx > useOnlineAvailabilityData tests > Test that if the hook is not enabled it should return null statuses: src/tests/unit/availability.test.tsx#L434
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/availability.test.tsx:434:24
src/tests/unit/config.test.tsx > Should handle config with string arrays: src/tests/unit/config.test.tsx#L30
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/config.test.tsx:30:22
src/tests/unit/config.test.tsx > Should handle config with array with objects: src/tests/unit/config.test.tsx#L43
TypeError: ReactDOM.render is not a function ❯ node_modules/@testing-library/react-hooks/lib/dom/pure.js:80:18 ❯ Object.process.env.NODE_ENV.exports.act node_modules/react/cjs/react.development.js:1081:22 ❯ process.env.NODE_ENV.exports.act node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20 ❯ render node_modules/@testing-library/react-hooks/lib/dom/pure.js:79:26 ❯ Proxy.renderHook node_modules/@testing-library/react-hooks/lib/core/index.js:114:5 ❯ src/tests/unit/config.test.tsx:43:22
Integration test (1)
Cypress tests: 1 failed
Integration test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Integration test (3)
No files were found with the provided path: cypress/videos. No artifacts will be uploaded.
Unit test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Integration test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Integration test (2)
No files were found with the provided path: cypress/videos. No artifacts will be uploaded.
Integration test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Integration test (1)
No files were found with the provided path: cypress/videos. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size
cypress-screenshots-1
101 KB