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 · 0 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
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

1 participant