Closed tschaffter closed 2 years ago
@rrchai I'm changing the priority of this ticket to Low. Solving this issue will probably also solve #364 .
@tschaffter I was not able to reproduce the error following below steps:
*_spec.ts.off
to *_spec.ts
nx test challenge-registry-ui
I did need to rebuild the devcontainer after syncing up with upstream/main.
BTW I learned recently that we can use the shortcut nx reset
instead of nx clear-cache
to clear the local cache.
I'm trying to run the tests on my MBP but it's super slow. Could you try again but first run challenge-install
when working from the main branch? I think that the issue arose after I updated a package in package.json
.
I also found a better why to disable the cache for a given command instead of clearing the local cache and renaming nx-cloud.env
: simply appends --skip-nx-cache
to the nx command.
Thanks for the tips. I am still not able to reproduce the error.
vscode@71ac81592925:/workspaces/challenge-registry$ challenge-install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > keycloak-angular@9.1.0" has incorrect peer dependency "keycloak-js@^10 || ^11 || ^12 || ^13 || ^14 || ^15 || ^16".
warning " > ngx-avatar@4.1.0" has incorrect peer dependency "@angular/common@^11.1.0".
warning " > ngx-avatar@4.1.0" has incorrect peer dependency "@angular/core@^11.1.0".
warning "@nrwl/angular > jasmine-marbles@0.8.4" has incorrect peer dependency "rxjs@^6.5.3".
warning "@nrwl/angular > rxjs-for-await@0.0.2" has incorrect peer dependency "rxjs@^6.0.0".
warning "@nrwl/angular > @nrwl/cypress > @cypress/webpack-preprocessor@5.11.1" has unmet peer dependency "@babel/core@^7.0.1".
warning "@nrwl/angular > @nrwl/cypress > @cypress/webpack-preprocessor@5.11.1" has unmet peer dependency "@babel/preset-env@^7.0.0".
warning "@nrwl/angular > @nrwl/cypress > @cypress/webpack-preprocessor@5.11.1" has unmet peer dependency "babel-loader@^8.0.2".
warning "@nrwl/angular > @nrwl/cypress > @cypress/webpack-preprocessor@5.11.1" has unmet peer dependency "webpack@^4 || ^5".
warning "babel-jest > babel-preset-jest@27.5.1" has unmet peer dependency "@babel/core@^7.0.0".
warning "redoc > style-loader@3.3.1" has unmet peer dependency "webpack@^5.0.0".
warning "@nrwl/react > @nrwl/web > rollup-plugin-typescript2 > @yarn-tool/resolve-package > @ts-type/package-dts@1.0.58" has unmet peer dependency "@types/bluebird@*".
warning "@nrwl/react > @nrwl/web > rollup-plugin-typescript2 > @yarn-tool/resolve-package > @ts-type/package-dts@1.0.58" has unmet peer dependency "ts-toolbelt@*".
warning "@nrwl/react > @nrwl/web > rollup-plugin-typescript2 > @yarn-tool/resolve-package > @ts-type/package-dts > ts-type@2.1.4" has unmet peer dependency "@types/bluebird@*".
warning "@nrwl/react > @nrwl/web > rollup-plugin-typescript2 > @yarn-tool/resolve-package > @ts-type/package-dts > ts-type@2.1.4" has unmet peer dependency "ts-toolbelt@^9.6.0".
warning " > @nx-tools/nx-docker@2.3.0" has unmet peer dependency "dotenv@^10.0.0".
warning "@nx-tools/nx-docker > @nx-tools/core@2.3.1" has unmet peer dependency "@nrwl/devkit@^12.0.0 || ^13.0.0".
warning "@nx-tools/nx-docker > @nx-tools/docker-metadata@2.2.1" has unmet peer dependency "@nrwl/devkit@^12.0.0 || ^13.0.0".
warning " > @nxrocks/nx-spring-boot@4.1.0" has unmet peer dependency "@nxrocks/common@0.0.0-development".
warning " > @nxrocks/nx-spring-boot@4.1.0" has unmet peer dependency "xmlbuilder2@^3.0.2".
warning " > @nxrocks/nx-spring-boot@4.1.0" has unmet peer dependency "unzipper@^0.10.11".
warning " > @nxrocks/nx-spring-boot@4.1.0" has unmet peer dependency "xpath@^0.0.32".
warning "@nxrocks/nx-spring-boot > @nrwl/devkit@14.1.7" has unmet peer dependency "nx@>= 13.10 <= 15".
warning " > babel-jest@27.2.3" has unmet peer dependency "@babel/core@^7.8.0".
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint@^7.12.1".
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint-plugin-promise@^4.2.1 || ^5.0.0".
warning " > redoc@2.0.0-rc.63" has unmet peer dependency "mobx@^6.0.4".
warning " > redoc@2.0.0-rc.63" has unmet peer dependency "styled-components@^4.1.1 || ^5.1.1".
warning "redoc > @redocly/react-dropdown-aria@2.0.12" has unmet peer dependency "styled-components@^5.1.1".
warning "redoc > mobx-react@7.2.1" has unmet peer dependency "mobx@^6.1.0".
warning "redoc > mobx-react > mobx-react-lite@3.2.3" has unmet peer dependency "mobx@^6.1.0".
warning "redoc-cli > styled-components@5.3.3" has unmet peer dependency "react-is@>= 16.8.0".
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
$ ngcc --properties es2015 browser module main
Processing legacy "View Engine" libraries:
- @angular-architects/module-federation-runtime [es2015/esm2015] ()
- ngx-avatar [es2015/esm2015] (https://github.com/HaithemMosbahi/ngx-avatar)
- @angular-architects/module-federation-runtime [main/umd] ()
- ngx-avatar [main/umd] (https://github.com/HaithemMosbahi/ngx-avatar)
Encourage the library authors to publish an Ivy distribution.
$ husky install
husky - Git hooks installed
Done in 239.49s.
vscode@71ac81592925:/workspaces/challenge-registry$ nx reset
> NX Resetting the Nx workspace cache and stopping the Nx Daemon.
This might take a few minutes.
> NX Daemon Server - Stopped
> NX Successfully reset the Nx workspace.
vscode@71ac81592925:/workspaces/challenge-registry$ nx test challenge-registry-ui --skip-nx-cache
> nx run challenge-registry-ui:test
PASS challenge-registry-ui libs/challenge-registry/ui/src/lib/button-github/button-github.component.spec.ts
PASS challenge-registry-ui libs/challenge-registry/ui/src/lib/footer/footer.component.spec.ts
PASS challenge-registry-ui libs/challenge-registry/ui/src/lib/avatar/avatar.component.spec.ts
PASS challenge-registry-ui libs/challenge-registry/ui/src/lib/navbar/navbar.component.spec.ts
PASS challenge-registry-ui libs/challenge-registry/ui/src/lib/org-card/org-card.component.spec.ts
PASS challenge-registry-ui libs/challenge-registry/ui/src/lib/user-button/user-button.component.spec.ts
-------------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
avatar | 100 | 100 | 100 | 100 |
avatar.component.html | 100 | 100 | 100 | 100 |
avatar.component.ts | 100 | 100 | 100 | 100 |
avatar.module.ts | 100 | 100 | 100 | 100 |
mock-avatars.ts | 100 | 100 | 100 | 100 |
button-github | 100 | 100 | 100 | 100 |
button-github.component.html | 100 | 100 | 100 | 100 |
button-github.component.ts | 100 | 100 | 100 | 100 |
footer | 100 | 100 | 100 | 100 |
footer.component.html | 100 | 100 | 100 | 100 |
footer.component.ts | 100 | 100 | 100 | 100 |
navbar | 100 | 100 | 100 | 100 |
navbar.component.html | 100 | 100 | 100 | 100 |
navbar.component.ts | 100 | 100 | 100 | 100 |
org-card | 100 | 100 | 100 | 100 |
mock-org.ts | 100 | 100 | 100 | 100 |
org-card.component.html | 100 | 100 | 100 | 100 |
org-card.component.ts | 100 | 100 | 100 | 100 |
user-button | 100 | 100 | 100 | 100 |
mock-menu-items.ts | 100 | 100 | 100 | 100 |
user-button.component.html | 100 | 100 | 100 | 100 |
user-button.component.ts | 100 | 100 | 100 | 100 |
-------------------------------|---------|----------|---------|---------|-------------------
Test Suites: 6 passed, 6 total
Tests: 13 passed, 13 total
Snapshots: 0 total
Time: 7.963 s
Ran all test suites.
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Successfully ran target test for project challenge-registry-ui (9s)
How to reproduce:
main
branch.nx clear-cache
.nx-cloud.env
, e.g. to_nx-cloud.env
.