ApiFetch: Script module #102429
Annotations
7 errors and 2 warnings
Running the tests:
packages/api-fetch/src/middlewares/test/preloading.js#L176
Error: expect(received).toEqual(expected) // deep equality
Expected: {"content": "example"}
Received: undefined
at Object.toEqual (/home/runner/work/gutenberg/gutenberg/packages/api-fetch/src/middlewares/test/preloading.js:176:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
Running the tests:
packages/api-fetch/src/middlewares/test/preloading.js#L202
Error: expect(received).toEqual(expected) // deep equality
Expected: {"bar": "bar", "foo": "foo"}
Received: undefined
at Object.toEqual (/home/runner/work/gutenberg/gutenberg/packages/api-fetch/src/middlewares/test/preloading.js:202:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
Running the tests:
packages/api-fetch/src/middlewares/test/preloading.js#L220
Error: expect(received).toEqual(expected) // deep equality
Expected: {"foo": "foo"}
Received: undefined
at Object.toEqual (/home/runner/work/gutenberg/gutenberg/packages/api-fetch/src/middlewares/test/preloading.js:220:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
Running the tests:
packages/api-fetch/src/middlewares/test/preloading.js#L238
Error: expect(received).toEqual(expected) // deep equality
Expected: {"bar": "bar", "foo": "foo"}
Received: undefined
at Object.toEqual (/home/runner/work/gutenberg/gutenberg/packages/api-fetch/src/middlewares/test/preloading.js:238:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
Running the tests:
packages/api-fetch/src/middlewares/test/fetch-all-middleware.js#L427
Error: Cannot find module '../../index.js' from 'packages/api-fetch/src/middlewares/test/fetch-all-middleware.js'
at Resolver._throwModNotFoundError (/home/runner/work/gutenberg/gutenberg/node_modules/jest-resolve/build/resolver.js:427:11)
at Resolver.resolveModule (/home/runner/work/gutenberg/gutenberg/node_modules/jest-resolve/build/resolver.js:358:10)
at Resolver._getVirtualMockPath (/home/runner/work/gutenberg/gutenberg/node_modules/jest-resolve/build/resolver.js:619:14)
at Resolver._getAbsolutePath (/home/runner/work/gutenberg/gutenberg/node_modules/jest-resolve/build/resolver.js:587:14)
at Resolver.getModuleID (/home/runner/work/gutenberg/gutenberg/node_modules/jest-resolve/build/resolver.js:530:31)
at Runtime.setMock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runtime/build/index.js:1203:37)
at setMockFactory (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runtime/build/index.js:1924:12)
at Object.mock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runtime/build/index.js:1910:16)
at Object.doMock (/home/runner/work/gutenberg/gutenberg/packages/api-fetch/src/middlewares/test/fetch-all-middleware.js:22:8)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10)
at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
|
Running the tests:
packages/api-fetch/src/middlewares/test/fetch-all-middleware.js#L19
Error: expect.hasAssertions()
Expected at least one assertion to be called but received none.
at Object.hasAssertions (/home/runner/work/gutenberg/gutenberg/packages/api-fetch/src/middlewares/test/fetch-all-middleware.js:19:10)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10)
at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
|
Running the tests
Process completed with exit code 1.
|
Setup Node.js and install dependencies
Both node-version and node-version-file inputs are specified, only node-version will be used
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading