mardi 24 septembre 2019

jest ignore all node_modules except 1 package

I'm using jest for doing testing and currently I can ignore node_modules. The issue, however, is that theres 1 package in node_modules that I want to get transpiled with babel. Right now my ignored patterns look like this:

testPathIgnorePatterns: ['./node_modules/'],

if my package is called 'my-package', how can I make it so testPathIgnorePatterns doesn't ignore that inside node_modules?

Aucun commentaire:

Enregistrer un commentaire