Update npm dependencies (especially @wordpress
)
#9937
Annotations
10 errors
Test JS:
assets/admin/students/student-modal/index.test.js#L347
Error: expect(received).toHaveLength(expected)
Expected length: 2
Received length: 1
Received array: [<div class="components-notice__content">Unable to add student. Please try again.<div class="components-notice__actions" /></div>]
at Object.toHaveLength (/home/runner/work/***/***/assets/admin/students/student-modal/index.test.js:347:7)
|
Test JS:
assets/admin/students/student-modal/index.test.js#L466
Error: expect(received).toHaveLength(expected)
Expected length: 2
Received length: 1
Received array: [<div class="components-notice__content">Unable to remove students. Please try again.<div class="components-notice__actions" /></div>]
at Object.toHaveLength (/home/runner/work/***/***/assets/admin/students/student-modal/index.test.js:466:7)
|
Test JS:
assets/admin/students/student-bulk-action-button/index.test.js#L37
TestingLibraryElementError: Unable to find an element with the text: (_, node) => { const hasText = n => n.textContent === value; const nodeHasText = hasText(node); const childrenDontHaveText = Array.from(node.children).every(child => !hasText(child)); return nodeHasText && childrenDontHaveText; } (normalized from '(_, node) => {
const hasText = n => n.textContent === value;
const nodeHasText = hasText(node);
const childrenDontHaveText = Array.from(node.children).every(child => !hasText(child));
return nodeHasText && childrenDontHaveText;
}'). 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>
<p
class="a11y-speak-intro-text"
hidden="hidden"
id="a11y-speak-intro-text"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
>
Notifications
</p>
<div
aria-atomic="true"
aria-live="assertive"
aria-relevant="additions text"
class="a11y-speak-region"
id="a11y-speak-assertive"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
/>
<div
aria-atomic="true"
aria-live="polite"
aria-relevant="additions text"
class="a11y-speak-region"
id="a11y-speak-polite"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
/>
<div>
<button
class="components-button button button-primary ***-student-bulk-actions__button"
id="***-bulk-learner-actions-modal-toggle"
type="button"
>
Select Action
</button>
<input
id="bulk-action-user-ids"
type="hidden"
/>
</div>
</body>
at Object.getElementError (/home/runner/work/***/***/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (/home/runner/work/***/***/assets/admin/students/student-bulk-action-button/index.test.js:75:11)
at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat
|
Test JS:
assets/admin/students/student-bulk-action-button/index.test.js#L37
TestingLibraryElementError: Unable to find an element with the text: (_, node) => { const hasText = n => n.textContent === value; const nodeHasText = hasText(node); const childrenDontHaveText = Array.from(node.children).every(child => !hasText(child)); return nodeHasText && childrenDontHaveText; } (normalized from '(_, node) => {
const hasText = n => n.textContent === value;
const nodeHasText = hasText(node);
const childrenDontHaveText = Array.from(node.children).every(child => !hasText(child));
return nodeHasText && childrenDontHaveText;
}'). 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
class=""
>
<p
class="a11y-speak-intro-text"
hidden="hidden"
id="a11y-speak-intro-text"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
>
Notifications
</p>
<div
aria-atomic="true"
aria-live="assertive"
aria-relevant="additions text"
class="a11y-speak-region"
id="a11y-speak-assertive"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
/>
<div
aria-atomic="true"
aria-live="polite"
aria-relevant="additions text"
class="a11y-speak-region"
id="a11y-speak-polite"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
/>
<div />
<div>
<button
class="components-button button button-primary ***-student-bulk-actions__button"
id="***-bulk-learner-actions-modal-toggle"
type="button"
>
Select Action
</button>
<input
id="bulk-action-user-ids"
type="hidden"
/>
</div>
</body>
at Object.getElementError (/home/runner/work/***/***/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (/home/runner/work/***/***/assets/admin/students/student-bulk-action-button/index.test.js:94:11)
at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/***/***/node_modules/jest-circu
|
Test JS:
assets/admin/students/student-bulk-action-button/index.test.js#L37
TestingLibraryElementError: Unable to find an element with the text: (_, node) => { const hasText = n => n.textContent === value; const nodeHasText = hasText(node); const childrenDontHaveText = Array.from(node.children).every(child => !hasText(child)); return nodeHasText && childrenDontHaveText; } (normalized from '(_, node) => {
const hasText = n => n.textContent === value;
const nodeHasText = hasText(node);
const childrenDontHaveText = Array.from(node.children).every(child => !hasText(child));
return nodeHasText && childrenDontHaveText;
}'). 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
class=""
>
<p
class="a11y-speak-intro-text"
hidden="hidden"
id="a11y-speak-intro-text"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
>
Notifications
</p>
<div
aria-atomic="true"
aria-live="assertive"
aria-relevant="additions text"
class="a11y-speak-region"
id="a11y-speak-assertive"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
/>
<div
aria-atomic="true"
aria-live="polite"
aria-relevant="additions text"
class="a11y-speak-region"
id="a11y-speak-polite"
style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"
/>
<div />
<div>
<button
class="components-button button button-primary ***-student-bulk-actions__button"
id="***-bulk-learner-actions-modal-toggle"
type="button"
>
Select Action
</button>
<input
id="bulk-action-user-ids"
type="hidden"
/>
</div>
</body>
at Object.getElementError (/home/runner/work/***/***/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (/home/runner/work/***/***/assets/admin/students/student-bulk-action-button/index.test.js:111:11)
at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/***/***/node_modules/jest-circ
|
Test JS:
assets/blocks/editor-components/confirm-dialog/use-confirm-dialog-props.test.js#L43
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
at Object.toBe (/home/runner/work/***/***/assets/blocks/editor-components/confirm-dialog/use-confirm-dialog-props.test.js:43:26)
at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/***/***/node_modules/jest-runner/build/testWorker.js:106:12)
|
Test JS:
assets/blocks/editor-components/confirm-dialog/use-confirm-dialog-props.test.js#L53
TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
at Object.result (/home/runner/work/***/***/assets/blocks/editor-components/confirm-dialog/use-confirm-dialog-props.test.js:53:28)
at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/***/***/node_modules/jest-runner/build/testWorker.js:106:12)
|
Test JS:
assets/shared/blocks/single-line-input/single-line-input.test.js#L64
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 1
Received number of calls: 0
at Object.toHaveBeenCalledTimes (/home/runner/work/***/***/assets/shared/blocks/single-line-input/single-line-input.test.js:64:26)
|
Test JS:
assets/shared/blocks/single-line-input/single-line-input.test.js#L75
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 1
Received number of calls: 0
at Object.toHaveBeenCalledTimes (/home/runner/work/***/***/assets/shared/blocks/single-line-input/single-line-input.test.js:75:25)
|
Test JS
Process completed with exit code 1.
|
Loading