Here is a snippet of code I'm working with in my project:
describe('Feature active', () => {
it('Should render a Feature', () => {
const wrapper = shallow(<MyComponent prop1={1}/>);
expect(wrapper.prop('prop1')).to.equal(1);
});
});
When it comes to typescript, I've encountered some issues resolving the type of describe
and it
. By including @types/jest
in my tsconfig.json file under types: [ '@types/jest' ]
, I was able to fix these clashes between jest and mocha.
Now, I'm curious about how compilerOption.types function in more detail. Specifically, I'd like to know all the packages (similar to @types/jest
) that typescript actively uses in my project.
Although I have several @types/...
packages listed in my package.json, my tsc
command seems to work fine with just types: [ '@types/jest' ]
. Does this mean that tsc isn't utilizing the other types?
Is there a way or specific command that can provide me with a list of all the types the tsc compiler is employing to transpile my code?