I get an error for invalid regular expression for the following Regex:
(?<!dist)/test/(unit|it)/.*\\.test.js$
use the following configuration in jest.config.js file:
module.exports = {
testRegex: '(?<!dist)/test/(unit|it)/.*\\.test.js$',
}
npx envinfo --preset jestSystem:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Binaries:
Node: 8.9.1 - ~/.nvm/versions/node/v8.9.1/bin/node
npm: 5.5.1 - ~/.nvm/versions/node/v8.9.1/bin/npm
npmPackages:
@stylable/jest: ^0.1.12 => 0.1.12
It works for me.

Please include a reproduction which fails on Jest 23
I had an old node version!!!
Works with node 10.
Thanks :)
(@zivl posted this for me)
Most helpful comment
I had an old node version!!!
Works with node 10.
Thanks :)
(@zivl posted this for me)