Lock forms for editing #2110
jest-coverage-report.yaml
on: pull_request
test-coverage
2m 58s
Annotations
2 errors and 1 warning
src/Forms/unpublish/UnpublishButton.test.tsx > UnpublishButton > do not render button if not published:
packages/bygger/src/hooks/useLockedFormModal.tsx#L42
TypeError: Cannot read properties of undefined (reading 'lockedFormReason')
❯ Module.useLockedFormModal [as default] src/hooks/useLockedFormModal.tsx:42:23
❯ UnpublishButton src/Forms/unpublish/UnpublishButton.tsx:13:59
❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:16305:18
❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20074:13
❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21587:16
❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27426:14
❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26560:12
❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26466:5
❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26434:7
❯ recoverFromConcurrentError ../../node_modules/react-dom/cjs/react-dom.development.js:25850:20
|
test-coverage
Process completed with exit code 1.
|
test-coverage
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: szenius/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|