Skip to content

Commit

Permalink
chore(tests): warn on ts-jest diagnostics error outside of CI test ru…
Browse files Browse the repository at this point in the history
…ns (#10268)
  • Loading branch information
alessbell authored Nov 8, 2022
1 parent 94faea9 commit 0cce181
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ const defaults = {
escapeString: true,
printBasicPrototype: true
},
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
diagnostics: {
warnOnly: process.env.TEST_ENV !== 'ci'
},
},
],
},
};

const ignoreTSFiles = '.ts$';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"ci:precheck": "node config/precheck.js",
"test": "jest --config ./config/jest.config.js",
"test:debug": "node --inspect-brk node_modules/.bin/jest --config ./config/jest.config.js --runInBand --testTimeout 99999",
"test:ci": "npm run test:coverage && npm run test:memory",
"test:ci": "TEST_ENV=ci npm run test:coverage && npm run test:memory",
"test:watch": "jest --config ./config/jest.config.js --watch",
"test:memory": "cd scripts/memory && npm i && npm test",
"test:coverage": "npm run coverage -- --ci --runInBand --reporters=default --reporters=jest-junit",
Expand Down

0 comments on commit 0cce181

Please sign in to comment.