My tests are passing successfully with jasmine (library tests) and jest (snapshot tests) thanks to including these lines at the top of my test files:
/// <reference path="../../node_modules/@types/jasmine/index.d.ts" />
// -> in my jest test files
/// <reference path="../../node_modules/@types/jest/index.d.ts" />
However, when I use tslint
, I encounter Duplicate errors like:
ERROR in [at-loader] ./node_modules/@types/jest/index.d.ts:12:13
TS2300: Duplicate identifier 'fdescribe'.
The issue arises because I can't exclude the d.ts
files for jasmine and jest since they're necessary for my tests. But I want to exclude them from tslint
. Is there a configuration solution that allows me to do this? I've come across some discussions on this matter but no definitive solutions have been proposed.