When upgrading ts-jest to 26.2.0 it starts complaining about astTransformers needing to be an object.
https://kulshekhar.github.io/ts-jest/user/config/astTransformers
The solution should be changing all jest.config.js files to use the new syntax.
but I'm not sure if we should use before, after or afterDeclarations.
// jest.config.js
module.exports = {
// [...]
globals: {
'ts-jest': {
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
}
}
};
tests should run without errors being displayed.
update ts-jest to 26.2.0
run tests
We are working to officially support updating to Jest 26 in an upcoming release
Most helpful comment
We are working to officially support updating to Jest 26 in an upcoming release