Whenever a *.test.ts(x)? file is among my staged files, I get errors like
tsc-files --noEmit --pretty:
src/components/MicButton.test.tsx:18:32 - error TS2339: Property 'toBe' does not exist on type 'Assertion'.
37 expect(muted).toBe(false);
tsc -p tsconfig.json doesn't produce these. Is there a configuration setting that will fix this?
tsc-files
isn't recognizing jest'sexpect
assertions.Whenever a
*.test.ts(x)?
file is among my staged files, I get errors liketsc -p tsconfig.json
doesn't produce these. Is there a configuration setting that will fix this?