Jest added to project with aliasing and eslint rules.
Jest is not supported esm & esm mocks yet, that's why we are forced to use jest-esm-transformer (Babel transform under the hood test modules & *.spec
scripts to CommonJs).
Without transform
configuration we have error: SyntaxError: Cannot use import statement outside a module
.
Nowadays (2022-01-12) we can esm without Babel only by ts-jest?
No! ts-jest uses Babel too and is only needed to [catch addi