autotest does not detect new spec files #290

ehuss opened this Issue Feb 23, 2014 · 1 comment


None yet

2 participants

ehuss commented Feb 23, 2014

If you add a new spec file when using autotest, jasmine-node will not detect the added file. This is because gaze is expecting relative paths.

I removed the join with process.cwd() in cli.js, and that seemed to make things work. I can't tell if there was a reason it is doing that. If there is, then alternatively you can call gaze with gaze('spec/**/*.js', {cwd: process.cwd()}, ...);. I'd be happy to make a pull request if either of these options sounds ok, I'm just not sure why it is using absolute paths in the first place.

tebriel commented Mar 6, 2014

I honestly can't recall why we were either. If you want to make a PR, I'll check it and merge as appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment