Skip to content

Ejercicio 6

Ejercicio 6 #7

Triggered via push March 7, 2024 09:33
Status Failure
Total duration 26s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
test
Process completed with exit code 1.
test
Something went wrong: Error: Request to create annotations failed - request: {"owner":"enBrixio","repo":"S3.-Entrega-testing","head_sha":"be158877b2d2efa396e7ede8afb021eecc48bb5e","name":"Jest","conclusion":"failure","output":{"title":"Jest Test Results","summary":"#### These are all the test results I was able to find from your jest-junit reporter\n**40** tests were completed in **0.642s** with **33** passed ✔ and **7** failed ✖ tests.","annotations":[{"path":"./tests/films.spec.js","title":"Function \"hoursToMinutes\" > should return an array","start_line":345,"end_line":347,"annotation_level":"failure","message":"Error: expect(received).toBe(expected) // Object.is equality\nExpected: true\nReceived: false\n\nStacktrace:\n at Object.toBe (tests/films.spec.js:346:53)\n at Promise.then.completed (node_modules/jest-circus/build/utils.js:298:28)\n at callAsyncCircusFn (node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (node_modules/jest-circus/build/run.js:316:40)\n at _runTest (node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (node_modules/jest-circus/build/run.js:121:9)\n at run (node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (node_modules/jest-runner/build/runTest.js:444:34)"},{"path":"./tests/films.spec.js","title":"Function \"hoursToMinutes\" > should return an array of movies with duration as a number","start_line":353,"end_line":355,"annotation_level":"failure","message":"TypeError: Cannot read property '0' of undefined\n\n\nStacktrace:\n at Object.<anonymous> (tests/films.spec.js:354:41)\n at Promise.then.completed (node_modules/jest-circus/build/utils.js:298:28)\n at callAsyncCircusFn (node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (node_modules/jest-circus/build/run.js:316:40)\n at _runTest (node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (node_modules/jest-circus/build/run.js:121:9)\n at run (node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (node_modules/jest-runner/build/runTest.js:444:34)"},{"path":"./tests/films.spec.js","title":"Function \"hoursToMinutes\" > should return an array of movies with the correct duration for a 31 minute movie","start_line":357,"end_line":360,"annotation_level":"failure","message":"TypeError: Cannot read property '0' of undefined\n\n\nStacktrace:\n at Object.<anonymous> (tests/films.spec.js:359:36)\n at Promise.then.completed (node_modules/jest-circus/build/utils.js:298:28)\n at callAsyncCircusFn (node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (node_modules/jest-circus/build/run.js:316:40)\n at _runTest (node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (node_modules/jest-circus/build/run.js:121:9)\n at run (node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (node_modules/jest-runner/build/runTest.js:444:34)"},{"path":"./tes
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v2, IgnusG/jest-report-action@v2.3.3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2, IgnusG/jest-report-action@v2.3.3. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/