Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Jest tests failing in a NX project with Angular 19 + Openlayers 10 + Typescript 5.6 #15418

Open
ricardojbertolin opened this issue Dec 12, 2024 · 4 comments

Comments

@ricardojbertolin
Copy link

Version

29.7.0

Steps to reproduce

  1. Clone my repo at https://github.com/ricardojbertolin/angular-19-demo
  2. npm install
  3. npx nx test angular-demo
  4. You should see the error come up

Expected behavior

Tests should be fine

Actual behavior

The repository I provided is just an out-of-the-box Nx project with angular. I followed this instructions: https://nx.dev/getting-started/tutorials/angular-standalone-tutorial.

I've only added the following stuff:

  1. Install the latest Openlayers dependency
  2. Instantiate a "DragPan" interaction on the main component constructor.

And that's it. You can see here the commit details: ricardojbertolin/angular-19-demo@4029b4c

After that, tests for this main component started to fail.
In older versions of Angular this didn't break down and worked as expected.

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.22621
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1365U
  Binaries:
    Node: 22.11.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    jest: 29.7.0 => 29.7.0
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Jan 11, 2025
@geomatikkolga
Copy link

No solution, but I've got the same issue, commenting to keep this alive.

@github-actions github-actions bot removed the Stale label Jan 13, 2025
@huehnerlady
Copy link

Yes I have a similar issue as well, all was fine but since update to Angular 19 the tests fail with Error: Could not parse CSS stylesheet when running MatDialog.open() (@angular/material/dialog)

@aalbericio
Copy link

We are stuck at TypeScript 5.5.4 until this issue is resolved. Could you prioritize it, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants