diff --git a/.npmignore b/.npmignore index 66c4669814..38fe728c03 100644 --- a/.npmignore +++ b/.npmignore @@ -36,12 +36,10 @@ commitlint.config.js # Internal jest config jest.config.js +jest*.config.ts # Tsconfig -tsconfig.build.json -tsconfig.eslint.json -tsconfig.json -tsconfig.spec.json +tsconfig*.json # Others *.tgz diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b429d4c05..139d448d7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,42 @@ +## [14.3.0](https://github.com/thymikee/jest-preset-angular/compare/v14.2.4...v14.3.0) (2024-11-15) + + +### Features + +* feat: add new setup test env functions ([21c0238](https://github.com/thymikee/jest-preset-angular/commit/21c0238)), closes [#354](https://github.com/thymikee/jest-preset-angular/issues/354) [#2755](https://github.com/thymikee/jest-preset-angular/issues/2755) +* feat: build package with type definitions ([a269daa](https://github.com/thymikee/jest-preset-angular/commit/a269daa)) +* feat: deprecate `setup-jest.js` and `setup-jest.mjs` ([a304036](https://github.com/thymikee/jest-preset-angular/commit/a304036)) + + +### Code Refactoring + +* test: switch example app test config files to ts ([e61f1ff](https://github.com/thymikee/jest-preset-angular/commit/e61f1ff)) + + +## DEPRECATIONS + +Importing `setup-jest.js`/`setup-jest.mjs` directly is deprecated. The files will be removed in the future. + +Please use "setupZoneTestEnv" function instead. Example: + +For CJS +``` +// setup-jest.ts +import { setupZoneTestEnv } from 'jest-preset-angular/setup-env'; + +setupZoneTestEnv(); +``` + +For ESM +``` +// setup-jest.ts +import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/index.mjs'; + +setupZoneTestEnv(); +``` + + + ## [14.2.4](https://github.com/thymikee/jest-preset-angular/compare/v14.2.3...v14.2.4) (2024-09-12) diff --git a/package.json b/package.json index 32da6355f3..60f7be027e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jest-preset-angular", - "version": "14.2.4", + "version": "14.3.0", "description": "Jest preset configuration for Angular projects", "license": "MIT", "engines": {