diff --git a/jest.config.js b/jest.config.js index f464ae96e..79b69a153 100644 --- a/jest.config.js +++ b/jest.config.js @@ -16,7 +16,7 @@ module.exports = { moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '/src/' }), globals: { 'ts-jest': { - tsConfig: './tsconfig.test.json', + tsconfig: './tsconfig.test.json', }, }, }; diff --git a/package-lock.json b/package-lock.json index d7ac26002..90bb4c731 100644 --- a/package-lock.json +++ b/package-lock.json @@ -113,6 +113,7 @@ "@ionic/angular-toolkit": "^4.0.0", "@ionic/cli": "^6.14.1", "@types/faker": "^5.1.3", + "@types/jest": "^26.0.24", "@types/node": "^12.12.64", "@types/resize-observer-browser": "^0.1.5", "@types/webpack-env": "^1.16.0", @@ -5247,6 +5248,16 @@ "@types/istanbul-lib-report": "*" } }, + "node_modules/@types/jest": { + "version": "26.0.24", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz", + "integrity": "sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==", + "dev": true, + "dependencies": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, "node_modules/@types/json-schema": { "version": "7.0.8", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.8.tgz", @@ -35064,6 +35075,16 @@ "@types/istanbul-lib-report": "*" } }, + "@types/jest": { + "version": "26.0.24", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz", + "integrity": "sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==", + "dev": true, + "requires": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, "@types/json-schema": { "version": "7.0.8", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.8.tgz", diff --git a/package.json b/package.json index 094851602..ee2d05135 100644 --- a/package.json +++ b/package.json @@ -141,6 +141,7 @@ "@ionic/angular-toolkit": "^4.0.0", "@ionic/cli": "^6.14.1", "@types/faker": "^5.1.3", + "@types/jest": "^26.0.24", "@types/node": "^12.12.64", "@types/resize-observer-browser": "^0.1.5", "@types/webpack-env": "^1.16.0", diff --git a/src/testing/setup.ts b/src/testing/setup.ts index 6bffcfaca..35812d3e7 100644 --- a/src/testing/setup.ts +++ b/src/testing/setup.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import 'jest-preset-angular'; +import 'jest-preset-angular/setup-jest'; import { setCreateSingletonMethodProxy } from '@singletons';