Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(jest): Fix Jest Deprecation Warnings (#465)
* fix jest warning Importing "setup-jest.js" directly is deprecated. The file "setup-jest.js" will be removed in the future. Please use "setupZoneTestEnv" function instead. Example: // setup-jest.ts import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone'; setupZoneTestEnv(); * fix another jest deprecation warning ts-jest[ts-jest-transformer] (WARN) Define `ts-jest` config under `globals` is deprecated. Please do transform: { <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }], }, See more at https://kulshekhar.github.io/ts-jest/docs/getting-started/presets#advanced ts-jest[ts-jest-transformer] (WARN) Define `ts-jest` config under `globals` is deprecated. Please do transform: { <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }], }, * update package-lock.json * update jest config
- Loading branch information