11/* eslint-disable */
22export default {
3- testEnvironment : 'jsdom' ,
43 displayName : 'contentstack-delivery' ,
54 preset : './jest.preset.js' ,
65 transform : {
7- '^.+\\.[tj]s$' : [ 'ts-jest' , {
8- tsconfig : '<rootDir>/tsconfig.spec.json' ,
9- } ] ,
6+ "^.+\\.[tj]s$" : [
7+ "ts-jest" ,
8+ {
9+ tsconfig : "<rootDir>/tsconfig.spec.json" ,
10+ } ,
11+ ] ,
1012 } ,
11- moduleFileExtensions : [ 'ts' , 'js' , ' html' ] ,
13+ moduleFileExtensions : [ "ts" , "js" , " html" ] ,
1214 collectCoverage : true ,
13- coverageDirectory : './reports/contentstack-delivery/coverage/' ,
14- collectCoverageFrom : [
15- "src/**" ,
16- "!src/index.ts"
17- ] ,
15+ coverageDirectory : "./reports/contentstack-delivery/coverage/" ,
16+ collectCoverageFrom : [ "src/**" , "!src/index.ts" ] ,
1817 coverageThreshold : {
1918 // global: {
2019 // branches: 95,
21- // functions: 95,
22- // lines: 95,
23- // statements: 95
2420 // }
2521 } ,
2622 reporters : [
27- 'default' ,
23+ "default" ,
24+ [
25+ "jest-html-reporter" ,
26+ {
27+ pageTitle : "API Test Report" ,
28+ outputPath : "reports/sanity.html" ,
29+ includeFailureMsg : true ,
30+ includeConsoleLog : true ,
31+ } ,
32+ ] ,
2833 [
29- ' jest-html-reporters' ,
34+ " jest-html-reporters" ,
3035 {
31- publicPath : ' ./reports/contentstack-delivery/html' ,
32- filename : ' index.html' ,
36+ publicPath : " ./reports/contentstack-delivery/html" ,
37+ filename : " index.html" ,
3338 expand : true ,
3439 } ,
3540 ] ,
3641 [
37- ' jest-junit' ,
42+ " jest-junit" ,
3843 {
39- outputDirectory : ' reports/contentstack-delivery/junit' ,
40- outputName : ' jest-junit.xml' ,
41- ancestorSeparator : ' › ' ,
42- uniqueOutputName : ' false' ,
43- suiteNameTemplate : ' {filepath}' ,
44- classNameTemplate : ' {classname}' ,
45- titleTemplate : ' {title}' ,
44+ outputDirectory : " reports/contentstack-delivery/junit" ,
45+ outputName : " jest-junit.xml" ,
46+ ancestorSeparator : " › " ,
47+ uniqueOutputName : " false" ,
48+ suiteNameTemplate : " {filepath}" ,
49+ classNameTemplate : " {classname}" ,
50+ titleTemplate : " {title}" ,
4651 } ,
4752 ] ,
4853 ] ,
49- } ;
54+ } ;
0 commit comments