0

In my package.json, I have a regex to process only the files that contain '.integration.'

The command is the following:

"test:integration": "jest .*\\.integration\\..*"

How can I select files that DON'T contain '.integration.' ?

Lev
  • 13,856
  • 14
  • 52
  • 84

1 Answers1

1

Maybe, an expression similar to,

^(?!.*\\.integration\\.).*$

might be somewhat close, not sure though.

Demo

Community
  • 1
  • 1
Emma
  • 27,428
  • 11
  • 44
  • 69
  • 1
    Many thanks. Actual command that works in package.json is : jest \"^(?!.*\\.integration\\.).*$\" – Lev Sep 04 '19 at 13:25