Since the upgrade from 29.7.0 to 30.4.2 our gitlab and WSL tests fail when running tests with jest and a configured preset.
Version
30.4.2
Steps to reproduce
For a fast reproduction I used the repository of jest-preset-angular. Example Project angular-v21
- Clone the repo
- npm install
- You may need to add the package
"@esbuild/linux-x64": "^0.28.1"
- run test in WSL
Expected behavior
We expect to run the jest tests with presets in WSL/gitlab like in other environments like Windows now.
Actual behavior
The tests fail with Validation errors like
Gitlab: gitlabrunner 16.9.0
● Validation Error:
Preset jest-preset-angular not found relative to rootDir /builds/projectX/projectX.UI.`
WSL under Windows
● Validation Error:
Preset jest-preset-angular not found relative to rootDir /mnt/d/Development/projectX/projectX.UI.
Dependend on how the project loads the preset (preset: 'jest-preset-angular or ...createCjsPreset()) the returned error may differ
Error with ...createCjsPreset():
● Validation Error:
Module jest-preset-angular/build/serializers/html-comment in the snapshotSerializers option was not found.
is: /mnt/d/Development/projectX/projectX.UI
Additional context
This may be related to #15960
Environment
Gitlab: gitlabrunner 16.9.0
WSL:
System:
OS: Linux 6.18 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
CPU: (16) x64 13th Gen Intel(R) Core(TM) i7-1360P
Binaries:
Node: 22.22.3 - /home/linuxbrew/.linuxbrew/bin/node
npm: 10.9.8 - /home/linuxbrew/.linuxbrew/bin/npm
npmPackages:
jest: ^30.4.2 => 30.4.2
Since the upgrade from 29.7.0 to 30.4.2 our gitlab and WSL tests fail when running tests with jest and a configured preset.
Version
30.4.2
Steps to reproduce
For a fast reproduction I used the repository of jest-preset-angular. Example Project angular-v21
"@esbuild/linux-x64": "^0.28.1"Expected behavior
We expect to run the jest tests with presets in WSL/gitlab like in other environments like Windows now.
Actual behavior
The tests fail with Validation errors like
Gitlab: gitlabrunner 16.9.0
WSL under Windows
Dependend on how the project loads the preset (
preset: 'jest-preset-angularor...createCjsPreset()) the returned error may differError with ...createCjsPreset():
Additional context
This may be related to #15960
Environment
Gitlab: gitlabrunner 16.9.0 WSL: System: OS: Linux 6.18 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat) CPU: (16) x64 13th Gen Intel(R) Core(TM) i7-1360P Binaries: Node: 22.22.3 - /home/linuxbrew/.linuxbrew/bin/node npm: 10.9.8 - /home/linuxbrew/.linuxbrew/bin/npm npmPackages: jest: ^30.4.2 => 30.4.2