Peter-Win / fe-gui

0 stars 0 forks source link

Jest 28 appeared #19

Closed Peter-Win closed 2 years ago

Peter-Win commented 2 years ago

And we have an error: Validation Error: Test environment jsdom cannot be found. Make sure the testEnvironment configuration option points to an existing node module. Configuration Documentation: https://jestjs.io/docs/configuration As of Jest 28 "jest-environment-jsdom" is no longer shipped by default, make sure to install it separately. error Command failed with exit code 1.

Peter-Win commented 2 years ago

Temporarily rollback to version 27

Peter-Win commented 2 years ago

Tried to install jsdom and jest-environment-jsdom-latest. The result is negative. ts-jest[versions] (WARN) Version 28.0.0 of jest installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=27.0.0 <28.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions. FAIL src/FormDemo/FormDemo.spec.tsx ● Test suite failed to run TypeError: TestEnvironment is not a constructor at runTestInternal (node_modules/jest-runner/build/runTest.js:277:23)