-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watching #3
Comments
Watching can be easily accomplished with |
I don't have any plans on supporting watching. A quick look around GH didn't turn up any tape runners with watching built in, have you found any? |
That'd be a neat feature! I'm using |
I tried and failed in every possible way, I could think of -m - wasted well over two weeks now. I couldn't remove and re-require the test files. It just kept add them on the stack instead. Hope someone implement this - assuming this might increase |
tape-watch keeps a long-running process, but doesn't seem to support transpilers at the moment. |
That pretty much lets me get back to mocha/chai. With a huge codebase you want instant test feedback and that can only be achieved by watching for changes. |
FYI: tape-watch supports the require flag now so you can use things like babel with it |
Here's an example of using tape-watch instead of babel-tape-runner, from my package.json: "scripts": {
"test": "babel-tape-runner static/__tests__/* | tap-diff",
"test-watch": "tape-watch -r babel-register static/__tests__/* -o '| ./node_modules/tap-diff/distributions/cli.js'", |
Please notice that if you are using tape-watch with @babel/register the line should start with:
Kind of obvious when you know it, but took me a while to figure out. |
I understand it may not exactly be in the scope of this project but I'm wondering if there's any way to make
babel-tape-runner
a long running process similarly to mocha's-w
.I'm more concerned about minimizing the slow startup time (because of babel overhead) than watching files for changes.
The text was updated successfully, but these errors were encountered: