MOBILE-3833 config: Update jest

main
Pau Ferrer Ocaña 2021-08-03 12:58:26 +02:00
parent 0fb7961a42
commit 9dbcd09e4a
4 changed files with 24 additions and 2 deletions

View File

@ -16,7 +16,7 @@ module.exports = {
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/src/' }),
globals: {
'ts-jest': {
tsConfig: './tsconfig.test.json',
tsconfig: './tsconfig.test.json',
},
},
};

21
package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -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';