Skip to content

Commit

Permalink
chore(ts): also enable isolatedModules
Browse files Browse the repository at this point in the history
this catches when you export something that's a type as a regular export, further avoiding the issue
  • Loading branch information
Haroenv committed Aug 18, 2021
1 parent 79a18fa commit 807986f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/jest/matchers/__tests__/toWarnDev-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* eslint-disable no-console */

// export is needed for TS isolatedModules
// eslint-disable-next-line jest/no-export
export {};

describe('toWarnDev', () => {
describe('usage', () => {
test('fails with incorrect type of message', () => {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
"skipLibCheck": true,
"isolatedModules": true
},
"exclude": [
"examples",
Expand Down

0 comments on commit 807986f

Please sign in to comment.