Comments (10)
you can run fsmonitor -s -p '+*.js' npm test
and I'll do the trick for you, you can even put that in a npm command like npm run watch
from lab.
This does not make sense for a test runner.
from lab.
Mocha has this feature and it's great b/c I do not have to have a grunt task to watch the file. I can just call $ mocha my-test.js -w
and it automatically watches the file for changes. π
from lab.
This is a very very useful feature for anyone doing TDD. A lot better than cmd+s, alt+tab, up, enter... π
from lab.
There are a hundred tools to do it, I'm using nodemon personally, but why not just build it in with a flag? Since most people are coming from the mocha world, matching their feature set isn't a bad objective.
Lab solves so many problems for you, and then just has this 1 random broken window where you have to solve it yourself. It'd be different and I would understand if the project philosophically aimed to be unopinionated, but that's not the type of project this is.
from lab.
Why would you implement something that can already be done using tools that
specialize in solving this particular requirement? I personally prefer to
keep my choice of tool when I change my test runner ...
On Jun 3, 2015 7:36 PM, "Chris Vickery" [email protected] wrote:
There are a hundred tools to do it, I'm using nodemon personally, but why
not just build it in with a flag? Since most people are coming from the
mocha world, matching their feature set isn't a bad objective.Lab solves so many problems for you, and then just has this 1 random
broken window where you have to solve it yourself. It'd be different and I
would understand if the project philosophically aimed to be unopinionated,
but that's not the type of project this is.β
Reply to this email directly or view it on GitHub
#73 (comment).
from lab.
How about using fsmonitor?
from lab.
If you use gulp/grunt/... like all the kids these days, it also already does that for you.
from lab.
please lock this, it was an off the cuff thought, and repo owners have already replied.
solution: can use any of the myriad task runners as @Marsup mentions.
from lab.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
from lab.
Related Issues (20)
- Using the coverage reporter requires "@hapi/eslint-plugin" to be installed, even if itβs not used. HOT 12
- DOMException will be a global in Node.js 17+ HOT 2
- Update linter to work with ESLint 8 HOT 15
- Revise leak detection HOT 2
- Supply AbortController signal to tests HOT 1
- Add built-in TypeScript support
- Lab is not working with import syntax in my project HOT 7
- How to run individual tests: updated docs HOT 1
- tsconfig paths alias HOT 2
- Report "Type T has no properties in common with type U" as a type error
- Allow to specify debugger interface HOT 1
- Lint .mjs (et al) HOT 1
- Uncovered lines in test report HOT 2
- Use diffWordsWithSpace instead of diffWords in the console reporter
- Node 18 undici global HOT 6
- Cannot find module non-relatively imported
- UnhandledPromiseRejectionWarning HOT 11
- Add `.ts` to the default `extensions` for `--lint`
- Babel Preset transform is breaking on updating node version
- coverage-predicates does not work with anonymous functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lab.