(BREAKING): Refine ast-transformer behavior: only transform styles-assignments inside @Component (#261) and TypeScript v2.9 createStringLiteral is polyfilled if an older version is used (#272).
(BREAKING): Restructure project with src and build folder (#307).
(BREAKING): Support tsconfig.spec.json in root folder by default (#309).
(BREAKING): Enable AngularNoAngularNoNgAttributesSnapshotSerializer (created in #97) by default (#318).
Remove core-js dependency by using internal, minimal reflect-metadata (#315).
Chore && Maintenance
Update example app to match Angular 8 Boilerplate (#311).
Update example app to not use karma, extract jest config, fix paths (#316).
If the astTransformers are referenced in a custom jest config, [ 'jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer'] have to be set instead.
Serializers, transformers and setupJest have to be referenced from the jest-preset-angular/build/-folder in a custom config. Existing references have to be aligned.
If your tsconfig.spec.json is located in src, move it to your root folder and adjust the referenced files and paths inside, or align your jest configuration as discussed in the README.md.
In an Angular 8 project or higher, core-js should no longer be a dependency declared in package.json, unless it's imported manually in the code.
v7.0.1
Chore
Update dependencies to enable Greenkeeper 🌴 (#235)
v7.0.0
Features
(BREAKING): Upgrade ts-jest to ^23.10.4 and use ast-transformer instead of processor (#204)
Docs: do not use .babelrc file but rather babel.config.js (#231)
Docs: add astTransformers in configuration example (#218)
Migration Guide
If global and transform are not set in your configuration in jest.config.json, jest.config.js or package.json, you are done.
If the global value of the configuration was overriden, adjust
The option "__TRANSFORM_HTML__": true is not required anymore. Instead the "stringifyContentPathRegex": "\\.html$" should be used inside the ts-jest-configuration.
Change the assignment identifier from tsConfigFile to tsConfig.
Add the astTransformer: [ require.resolve('jest-preset-angular/InlineHtmlStripStylesTransformer')] so Jest can work with templateUrl-assignments in Component decorators.
If transform was overridden, remove the entry pointing at preprocessor.js and add "^.+\\.(ts|js|html)$": "ts-jest" to the transform-object.
If in doubt, check the configuration example in jest-preset.json.
Update dependencies for pretty-format and ts-jest to v25 (#346).
Remove jest-environment-jsdom-fifteen from dependencies and preset, closes (#325)
Chore && Maintenance
Update project devDependencies.
Update example app dependencies.
v8.0.0
Features
(BREAKING): Refine ast-transformer behavior: only transform styles-assignments inside @Component (#261) and TypeScript v2.9 createStringLiteral is polyfilled if an older version is used (#272).
(BREAKING): Restructure project with src and build folder (#307).
(BREAKING): Support tsconfig.spec.json in root folder by default (#309).
(BREAKING): Enable AngularNoAngularNoNgAttributesSnapshotSerializer (created in #97) by default (#318).
Remove core-js dependency by using internal, minimal reflect-metadata (#315).
Chore && Maintenance
Update example app to match Angular 8 Boilerplate (#311).
Update example app to not use karma, extract jest config, fix paths (#316).
If the astTransformers are referenced in a custom jest config, [ 'jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer'] have to be set instead.
Serializers, transformers and setupJest have to be referenced from the jest-preset-angular/build/-folder in a custom config. Existing references have to be aligned.
If your tsconfig.spec.json is located in src, move it to your root folder and adjust the referenced files and paths inside, or align your jest configuration as discussed in the README.md.
In an Angular 8 project or higher, core-js should no longer be a dependency declared in package.json, unless it's imported manually in the code.
v7.1.0
Features
Added AngularNoNgAttributesSnapshotSerializer. Using this serializer makes snapshots clearer and more human-readable. You have to apply this serializer manually by redefining snapshotSerializersjest option.
Chore && Maintenance
Fixed a CI cache issue in the example app, which would not always use the current version of the preset in the test runs.
This version was pushed to npm by wtho, a new releaser for jest-preset-angular since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps jest-preset-angular from 5.2.2 to 8.1.1.
Release notes
Sourced from jest-preset-angular's releases.
Changelog
Sourced from jest-preset-angular's changelog.
Commits
78b96a3
v8.1.134287f5
fix: zone.js patch jest should handle done correctly (#357)612be29
docs: emitDecoratorMetadata Documentation for issue 288 (#345)1ae55c6
v8.1.017dc5bf
fix: test.each should be in ProxyZone (#340)5e1249d
Update README.md (#350)8475b05
Jest 25 (#346)fbbae7b
build(deps): bump handlebars from 4.1.2 to 4.5.3 in /example (#338)7884f77
build(deps): bump handlebars from 4.1.2 to 4.5.3 (#337)82594e8
docs: fix reference in example project README.md (#342)Maintainer changes
This version was pushed to npm by wtho, a new releaser for jest-preset-angular since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)