FullStackForger / react-jwt-auth

Simple JSON Web Token authentication and authorization library for react
20 stars 6 forks source link

`npm test-watch` ignores *.spec.jsx files #9

Open FullStackForger opened 7 years ago

FullStackForger commented 7 years ago

environment: Windows 10

FullStackForger commented 7 years ago

Might be related to mochajs/mocha issue Mocha --watch #2444

FullStackForger commented 7 years ago

Alternative is watch-run but finding it unreliable on windows so far and it doesn't seem to support terminal colors

watch-run -i -p 'src/**/*' npm test
FullStackForger commented 7 years ago

Looks like the problem is with mocha --watch it seem to ignore all *.jsx files

Alternative no. 2 is renaming all [comp].spec.jsx to [comp].spec.js but that is not good either.

FullStackForger commented 7 years ago

paulmillr/chokidar or testem/testem seems like a good alternatives as suggested by:

I have to test if it solves the problem described here: https://github.com/mochajs/mocha/issues/2444#issuecomment-255941341