Releases: thymikee/jest-preset-angular
Releases · thymikee/jest-preset-angular
v10.0.0
v9.0.7
chore(release): 9.0.7 (#993)
v9.0.6
chore(release): 9.0.6 (#989)
v9.0.5
chore(release): 9.0.5 (#972)
v9.0.4
build(deps): bump postcss from 7.0.35 to 7.0.36 (#959) Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.36. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/7.0.35...7.0.36) --- updated-dependencies: - dependency-name: postcss dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v9.0.3
chore(release): 9.0.3
v9.0.2
chore(release): 9.0.2
v9.0.1
chore(release): 9.0.1 (#937)
v9.0.0
Bug Fixes
- support all node versions >= 12.13.0 (#923) (96782a6), closes #920
- presets: remove
moduleNameMapperconfig (#910) (df482bc), closes #908
Features
- support Jest 27 (#926) (1c761f8)
- config: load zone ESM when running jest in ESM mode (#892) (e03ec19), closes #751
- add
exportsfield topackage.json, see https://nodejs.org/api/packages.html#packages_package_entry_points - presets: add type definition for
presetsentry point (#801) (e4ff0c0) - compiler: support ESM (#721) (a2166f8)
- presets: add ESM preset (#723) (b0073b0)
- compiler: use
replace-resourcesAST transformer from Angular (#708) (1b20c19) - compiler: use
downlevel-ctorAST transformer from Angular (#730) (1f964c3)
Performance Improvements
- compiler: reuse
cacheFSfrom jest to reduce file system reading (#679) (f5d9d4b) - config: set
skipLibCheck: trueif not defined in tsconfig (#678) (0df3ce1)
BREAKING CHANGES
- Drop support for Angular < 8.0, see https://angular.io/guide/releases#support-policy-and-schedule.
- Drop support for Node.js version 10 since it becomes EOL on 2021-04-30. Required Node version now is >=12.13.0.
- Require Jest 27.
- Users who are using
import 'jest-preset-angular'should change toimport 'jest-preset-angular/setup-jest' - transformers: The AST transformers
InlineFilesTransformerandStripStylesTransformerare REMOVED and
defaultjest-preset-angularuses AST transformers from@angular/compiler-cliand@ngtools/webpack.
One should remove the old transformers from the jest config. - compiler:
jest-preset-angularnow switches to default to use its own transformer which wraps aroundts-jestto transform codes.
Users who are currently doing in jest config
// jest.config.js
module.exports = {
// [...]
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest',
},
}
should change to
// jest.config.js
module.exports = {
// [...]
transform: {
'^.+\\.(ts|js|html)$': 'jest-preset-angular',
},
}
- serializers:: snapshot serializer paths have been changed:
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js'is changed to'jest-preset-angular/build/serializers/no-ng-attributes.'jest-preset-angular/build/AngularSnapshotSerializer.js'is changed to'jest-preset-angular/build/serializers/ng-snapshot.'jest-preset-angular/build/HTMLCommentSerializer.js'is changed to'jest-preset-angular/build/serializers/html-comment.
- When generating a new project from Angular CLI, by default the
tsconfig.jsondoesn't contain any path mappings
hence removingmoduleNameMapperfrom preset will make sure that the preset works in pair withtsconfig.json.
Ones who are relying on the value ofmoduleNameMapperfrom the preset should create their ownmoduleNameMapper
config manually or viats-jestutil https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping - By default, if
skipLibCheckis not defined in tsconfig,jest-preset-angularwill set it totrue. If one wants to have it asfalse, one can set explicitly in tsconfig. - compiler:
jest-preset-angularnow switches to default to use its own transformer which wraps aroundts-jestto transform codes.
Users who are currently doing in jest config
// jest.config.js
module.exports = {
// [...]
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest',
},
}
should change to
// jest.config.js
module.exports = {
// [...]
transform: {
'^.+\\.(ts|js|html)$': 'jest-preset-angular',
},
}
v9.0.0-next.14
chore(release): 9.0.0-next.14 (#916)