Skip to content

pages build and deployment #1162

pages build and deployment

pages build and deployment #1162

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Aug 9, 2024 in 0s

Test suite run failed

Failed tests: 3/331. Failed suites: 3/27.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● ChapterShowHelper should › run all update actions and return undefined if there was an error

    expect(received).resolves.toBeUndefined()

    Received promise rejected instead of resolved
    Rejected to value: [Error: Error: Error]

      87 | 		jest.spyOn(helper.paprHelper, 'createOrUpdate').mockRejectedValue(new Error('Error'))
      88 | 		helper.originalData = chaptersWithoutProjection
    > 89 | 		await expect(helper.updateActions()).resolves.toBeUndefined()
         | 		      ^
      90 | 	})
      91 |
      92 | 	test('run all update actions and return undefined if no chapters', async () => {

      at expect (node_modules/.pnpm/[email protected]/node_modules/expect/build/index.js:113:15)
      at tests/helpers/routes/ChapterShowHelper.test.ts:89:9
      at tests/helpers/routes/ChapterShowHelper.test.ts:8:71
      at Object.<anonymous>.__awaiter (tests/helpers/routes/ChapterShowHelper.test.ts:4:12)
      at Object.<anonymous> (tests/helpers/routes/ChapterShowHelper.test.ts:86:87)


  ● AuthorShowHelper should › run updateActions and return original author if there was an error

    expect(received).resolves.toStrictEqual()

    Received promise rejected instead of resolved
    Rejected to value: [Error: Error: error]

      89 | 		helper.originalData = authorWithoutProjection
      90 | 		jest.spyOn(helper.paprHelper, 'createOrUpdate').mockRejectedValue(new Error('error'))
    > 91 | 		await expect(helper.updateActions()).resolves.toStrictEqual(authorWithoutProjection)
         | 		      ^
      92 | 	})
      93 |
      94 | 	test('run handler for a new author', async () => {

      at expect (node_modules/.pnpm/[email protected]/node_modules/expect/build/index.js:113:15)
      at tests/helpers/routes/AuthorShowHelper.test.ts:91:9
      at tests/helpers/routes/AuthorShowHelper.test.ts:8:71
      at Object.<anonymous>.__awaiter (tests/helpers/routes/AuthorShowHelper.test.ts:4:12)
      at Object.<anonymous> (tests/helpers/routes/AuthorShowHelper.test.ts:88:88)


  ● BookShowHelper should › run updateActions and return original book if there was an error

    expect(received).resolves.toStrictEqual()

    Received promise rejected instead of resolved
    Rejected to value: [Error: Error: error]

      90 | 		jest.spyOn(helper.paprHelper, 'createOrUpdate').mockRejectedValue(new Error('error'))
      91 | 		helper.originalData = bookWithoutProjection
    > 92 | 		await expect(helper.updateActions()).resolves.toStrictEqual(bookWithoutProjection)
         | 		      ^
      93 | 	})
      94 |
      95 | 	test('run handler for a new book', async () => {

      at expect (node_modules/.pnpm/[email protected]/node_modules/expect/build/index.js:113:15)
      at tests/helpers/routes/BookShowHelper.test.ts:92:9
      at tests/helpers/routes/BookShowHelper.test.ts:31:71
      at Object.<anonymous>.__awaiter (tests/helpers/routes/BookShowHelper.test.ts:27:12)
      at Object.<anonymous> (tests/helpers/routes/BookShowHelper.test.ts:89:86)

Annotations

Check failure on line 86 in tests/helpers/routes/ChapterShowHelper.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

ChapterShowHelper should > run all update actions and return undefined if there was an error

Error: expect(received).resolves.toBeUndefined()

Received promise rejected instead of resolved
Rejected to value: [Error: Error: Error]
    at expect (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/expect/build/index.js:113:15)
    at /home/runner/work/audnexus/audnexus/tests/helpers/routes/ChapterShowHelper.test.ts:89:9
    at Generator.next (<anonymous>)
    at /home/runner/work/audnexus/audnexus/tests/helpers/routes/ChapterShowHelper.test.ts:8:71
    at new Promise (<anonymous>)
    at Object.<anonymous>.__awaiter (/home/runner/work/audnexus/audnexus/tests/helpers/routes/ChapterShowHelper.test.ts:4:12)
    at Object.<anonymous> (/home/runner/work/audnexus/audnexus/tests/helpers/routes/ChapterShowHelper.test.ts:86:87)
    at Promise.then.completed (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 88 in tests/helpers/routes/AuthorShowHelper.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

AuthorShowHelper should > run updateActions and return original author if there was an error

Error: expect(received).resolves.toStrictEqual()

Received promise rejected instead of resolved
Rejected to value: [Error: Error: error]
    at expect (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/expect/build/index.js:113:15)
    at /home/runner/work/audnexus/audnexus/tests/helpers/routes/AuthorShowHelper.test.ts:91:9
    at Generator.next (<anonymous>)
    at /home/runner/work/audnexus/audnexus/tests/helpers/routes/AuthorShowHelper.test.ts:8:71
    at new Promise (<anonymous>)
    at Object.<anonymous>.__awaiter (/home/runner/work/audnexus/audnexus/tests/helpers/routes/AuthorShowHelper.test.ts:4:12)
    at Object.<anonymous> (/home/runner/work/audnexus/audnexus/tests/helpers/routes/AuthorShowHelper.test.ts:88:88)
    at Promise.then.completed (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 89 in tests/helpers/routes/BookShowHelper.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

BookShowHelper should > run updateActions and return original book if there was an error

Error: expect(received).resolves.toStrictEqual()

Received promise rejected instead of resolved
Rejected to value: [Error: Error: error]
    at expect (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/expect/build/index.js:113:15)
    at /home/runner/work/audnexus/audnexus/tests/helpers/routes/BookShowHelper.test.ts:92:9
    at Generator.next (<anonymous>)
    at /home/runner/work/audnexus/audnexus/tests/helpers/routes/BookShowHelper.test.ts:31:71
    at new Promise (<anonymous>)
    at Object.<anonymous>.__awaiter (/home/runner/work/audnexus/audnexus/tests/helpers/routes/BookShowHelper.test.ts:27:12)
    at Object.<anonymous> (/home/runner/work/audnexus/audnexus/tests/helpers/routes/BookShowHelper.test.ts:89:86)
    at Promise.then.completed (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/audnexus/audnexus/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/testWorker.js:106:12)