diff --git a/app/package.json b/app/package.json index f8a1378d..a61647cf 100644 --- a/app/package.json +++ b/app/package.json @@ -55,5 +55,25 @@ "tslint": "^5.18.0", "tslint-react": "^4.0.0", "typescript": "^3.5.3" + }, + "jest": { + "transform": { + "\\.(ts|tsx)$": "ts-jest", + "\\.css$": "/node_modules/razzle/config/jest/cssTransform.js", + "^(?!.*\\.(js|jsx|css|json)$)": "/node_modules/razzle/config/jest/fileTransform.js" + }, + "testMatch": [ + "/src/**/__tests__/**/*.(ts|js)?(x)", + "/src/**/?(*.)(spec|test).(ts|js)?(x)" + ], + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "json" + ], + "collectCoverageFrom": [ + "src/**/*.{js,jsx,ts,tsx}" + ] } }