Skip to content

fix: jest test not running on new otter webapp #8225

fix: jest test not running on new otter webapp

fix: jest test not running on new otter webapp #8225

Triggered via pull request April 11, 2024 12:41
Status Failure
Total duration 18m 9s
Artifacts 10

main.yml

on: pull_request
Matrix: checks / test
it-tests  /  prepare-verdaccio
2m 28s
it-tests / prepare-verdaccio
documentation-pr  /  build
documentation-pr / build
Matrix: it-tests / it-tests
documentation-pr  /  deploy-on-azure-static-webapp
documentation-pr / deploy-on-azure-static-webapp
documentation-main  /  deploy-on-azure-static-webapp
documentation-main / deploy-on-azure-static-webapp
publish-packages  /  publish-extensions
publish-packages / publish-extensions
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 8 warnings
new otter application with testing › should add testing to existing application and fixture to component: packages/@o3r/testing/schematics/index.it.spec.ts#L59
expect(received).not.toThrow() Error name: "Error" Error message: "Command failed: yarn workspace test-app test STDERR: PASS test-app src/components/test-component/presenter/test-component-pres.spec.ts (5.177 s) FAIL test-app src/components/test-component/container/test-component-cont.spec.ts ● Test suite failed to run· Configuration error: Could not locate module @o3r/testing/core mapped as: /home/runner/work/otter/it-tests/test-app-testing/node_modules/@o3r/testing/core/angular. Please check your configuration for these entries: { \"moduleNameMapper\": { \"/^@o3r\\/testing\\/core$/\": \"/home/runner/work/otter/it-tests/test-app-testing/node_modules/@o3r/testing/core/angular\" }, \"resolver\": undefined }· 2 | import { TestComponentContComponent } from './test-component-cont.component'; 3 | import { Component } from '@angular/core'; > 4 | import { O3rElement } from '@o3r/testing/core'; | ^ 5 | import { TestComponentContFixtureComponent } from './test-component-cont.fixture'; 6 | let componentFixture: TestComponentContFixtureComponent; 7 | @component({· at createNoMappedModuleFoundError (../../../../otter/.cache/test-app/cache/jest-resolve-npm-29.7.0-5c36f0eefb-10c0.zip/node_modules/jest-resolve/build/resolver.js:759:17) at Object.<anonymous> (src/components/test-component/container/test-component-cont.spec.ts:4:1)· PASS test-app src/app/app.component.spec.ts (5.494 s)· Test Suites: 1 failed, 2 passed, 3 total Tests: 4 passed, 4 total Snapshots: 0 total Time: 7.961 s Ran all test suites.· OUTPUT: ,, PASS test-app src/components/test-component/presenter/test-component-pres.spec.ts (5.177 s) FAIL test-app src/components/test-component/container/test-component-cont.spec.ts ● Test suite failed to run· Configuration error: Could not locate module @o3r/testing/core mapped as: /home/runner/work/otter/it-tests/test-app-testing/node_modules/@o3r/testing/core/angular. Please check your configuration for these entries: { \"moduleNameMapper\": { \"/^@o3r\\/testing\\/core$/\": \"/home/runner/work/otter/it-tests/test-app-testing/node_modules/@o3r/testing/core/angular\" }, \"resolver\": undefined }· 2 | import { TestComponentContComponent } from './test-component-cont.component'; 3 | import { Component } from '@angular/core'; > 4 | import { O3rElement } from '@o3r/testing/core'; | ^ 5 | import { TestComponentContFixtureComponent } from './test-component-cont.fixture'; 6 | let componentFixture: TestComponentContFixtureComponent; 7 | @component({· at createNoMappedModuleFoundError (../../../../otter/.cache/test-app/cache/jest-resolve-npm-29.7.0-5c36f0eefb-10c0.zip/node_modules/jest-resolve/build/resolver.js:759:17) at Object.<anonymous> (src/components/test-component/container/test-component-cont.spec.ts:4:1)· PASS test-app src/app/app.component.spec.ts (5.494 s)· Test Suites: 1 failed, 2 passed, 3 total Tests: 4 passed, 4 total Snapshots: 0 total Time: 7.961 s Ran all test suites. " 81 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports 82 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions > 83 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`); | ^ 84 | } 85 | } 86 | at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:83:11) at packageManagerWorkspaceRun (packages/@o3r/test-helpers/src/utilities/package-manager.ts:166:10) at packageManagerRunOnProject (packages/@o3r/test-helpers/src/utilities/package-manager.ts:177:26) at packages/@o3r/testing/schematics/index.it.spec.ts:59:44 at Object.<anonymous> (.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/exp
it-tests / it-tests (ubuntu-latest, yarn, o3r-project-with-app)
Process completed with exit code 1.
new otter application with testing › should add testing to existing application and fixture to component: packages/@o3r/testing/schematics/index.it.spec.ts#L59
expect(received).not.toThrow() Error name: "Error" Error message: "Command failed: yarn workspace test-app test STDERR: FAIL test-app src/components/test-component/container/test-component-cont.spec.ts ● Test suite failed to run· Configuration error: Could not locate module @o3r/testing/core mapped as: D:\\a\\otter\\it-tests\\test-app-testing\\node_modules\\@o3r\\testing\\core\\angular. Please check your configuration for these entries: { \"moduleNameMapper\": { \"/^@o3r\\/testing\\/core$/\": \"D:\\a\\otter\\it-tests\\test-app-testing\\node_modules\\@o3r\\testing\\core\\angular\" }, \"resolver\": undefined }· 2 | import { TestComponentContComponent } from './test-component-cont.component'; 3 | import { Component } from '@angular/core'; > 4 | import { O3rElement } from '@o3r/testing/core'; | ^ 5 | import { TestComponentContFixtureComponent } from './test-component-cont.fixture'; 6 | let componentFixture: TestComponentContFixtureComponent; 7 | @component({· at createNoMappedModuleFoundError (../../../../otter/.cache/test-app/cache/jest-resolve-npm-29.7.0-5c36f0eefb-10c0.zip/node_modules/jest-resolve/build/resolver.js:759:17) at Object.<anonymous> (src/components/test-component/container/test-component-cont.spec.ts:4:1)· PASS test-app src/components/test-component/presenter/test-component-pres.spec.ts (5.71 s) PASS test-app src/app/app.component.spec.ts (6.707 s)· Test Suites: 1 failed, 2 passed, 3 total Tests: 4 passed, 4 total Snapshots: 0 total Time: 10.24 s Ran all test suites.· OUTPUT: ,, FAIL test-app src/components/test-component/container/test-component-cont.spec.ts ● Test suite failed to run· Configuration error: Could not locate module @o3r/testing/core mapped as: D:\\a\\otter\\it-tests\\test-app-testing\\node_modules\\@o3r\\testing\\core\\angular. Please check your configuration for these entries: { \"moduleNameMapper\": { \"/^@o3r\\/testing\\/core$/\": \"D:\\a\\otter\\it-tests\\test-app-testing\\node_modules\\@o3r\\testing\\core\\angular\" }, \"resolver\": undefined }· 2 | import { TestComponentContComponent } from './test-component-cont.component'; 3 | import { Component } from '@angular/core'; > 4 | import { O3rElement } from '@o3r/testing/core'; | ^ 5 | import { TestComponentContFixtureComponent } from './test-component-cont.fixture'; 6 | let componentFixture: TestComponentContFixtureComponent; 7 | @component({· at createNoMappedModuleFoundError (../../../../otter/.cache/test-app/cache/jest-resolve-npm-29.7.0-5c36f0eefb-10c0.zip/node_modules/jest-resolve/build/resolver.js:759:17) at Object.<anonymous> (src/components/test-component/container/test-component-cont.spec.ts:4:1)· PASS test-app src/components/test-component/presenter/test-component-pres.spec.ts (5.71 s) PASS test-app src/app/app.component.spec.ts (6.707 s)· Test Suites: 1 failed, 2 passed, 3 total Tests: 4 passed, 4 total Snapshots: 0 total Time: 10.24 s Ran all test suites. " 81 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports 82 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions > 83 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`); | ^ 84 | } 85 | } 86 | at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:83:11) at packageManagerWorkspaceRun (packages/@o3r/test-helpers/src/utilities/package-manager.ts:166:10) at packageManagerRunOnProject (packages/@o3r/test-helpers/src/utilities/package-manager.ts:177:26) at packages/@o3r/testing/schematics/index.it.spec.ts:59:44 at Object.<anonymous> (.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/toThrowM
it-tests / it-tests (windows-latest, yarn, o3r-project-with-app)
Process completed with exit code 1.
checks / test (ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
checks / test (windows-latest)
Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
checks / test (windows-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
it-tests / it-tests (ubuntu-latest, npm, o3r-project-with-app)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
it-tests / it-tests (ubuntu-latest, yarn, o3r-project-with-app)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
it-tests / it-tests (windows-latest, npm, o3r-project-with-app)
Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
it-tests / it-tests (windows-latest, npm, o3r-project-with-app)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
it-tests / it-tests (windows-latest, yarn, o3r-project-with-app)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
dist Expired
34.6 MB
it-reports-ubuntu-latest-npm Expired
7.85 KB
it-reports-ubuntu-latest-yarn Expired
12.5 KB
it-reports-windows-latest-npm Expired
7.86 KB
it-reports-windows-latest-yarn Expired
12.5 KB
it-tests-ubuntu-latest-yarn Expired
123 MB
it-tests-windows-latest-yarn Expired
1.64 MB
ut-reports-ubuntu-latest Expired
161 KB
ut-reports-windows-latest Expired
161 KB
verdaccio Expired
14.7 MB