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
  • 10,276
  • 14
  • 44
  • 77

1 Answers1

1

Maybe, an expression similar to,

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

might be somewhat close, not sure though.

Demo

Community
  • 1
  • 1
Emma
  • 26,487
  • 10
  • 35
  • 65
  • 1
    Many thanks. Actual command that works in package.json is : jest \"^(?!.*\\.integration\\.).*$\" – Lev Sep 04 '19 at 13:25