You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a failure happens within a unit test (run with jest), no stack trace is present.
GeoNetwork-UI version used: main
node version 21.0 and above
To reproduce:
install node v21 (.g. with nvm)
Create a test like so:
it('will fail',()=>{thrownewError('blargz')})
Set the test configuration in the IDE to use node 21
Run the test in the IDE
Received:
Expected (obtained with node 20.10):
Potential solution
@rcaplier managed to fix the issue by using the jest-jasmine2 test runner. This looks like it was intended to ease the migration from jasmine to jest so I'm not 100% sure this is the right way to go.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a failure happens within a unit test (run with jest), no stack trace is present.
main
To reproduce:
Received:
Expected (obtained with node 20.10):
Potential solution
@rcaplier managed to fix the issue by using the jest-jasmine2 test runner. This looks like it was intended to ease the migration from jasmine to jest so I'm not 100% sure this is the right way to go.
The text was updated successfully, but these errors were encountered: