Code Monkey home page Code Monkey logo

Comments (16)

Whoaa512 avatar Whoaa512 commented on May 21, 2024 1

or nodemon

{
  "scripts": {
    "test": "nodemon test/*.js --exec ava"
  }
}

from ava.

scottcorgan avatar scottcorgan commented on May 21, 2024

You could probably just use the onchange module.

{
  "scripts": {
    "test": "onchange 'test/*.js' -- ava test/*.js"
  }
}

from ava.

floatdrop avatar floatdrop commented on May 21, 2024

In fact I would be cool, if ava could run only changed test in a file, not a whole file with tests.

from ava.

schnittstabil avatar schnittstabil commented on May 21, 2024

I think the common use case is watching the source directory and the test directory (not only the current existing files). And I suppose that the sources change far more often than the test.

from ava.

asbjornenge avatar asbjornenge commented on May 21, 2024

There is also the watch unix command.

But none of these can be compared to ava supporting filewatching internally. I love the fast feedback loop mocha -w gives me, and would ❤️ to see ava have this feature.

from ava.

sindresorhus avatar sindresorhus commented on May 21, 2024

This is now PR welcome. Should use https://github.com/paulmillr/chokidar.

@tomazzaman has indicated in #458 that he's interested in working on this.

from ava.

vadimdemedes avatar vadimdemedes commented on May 21, 2024

@sindresorhus Are you sure AVA is ready for this feature? We have lots of perf/babel issues on the table to solve. Watch feature is not that important like providing great experience (especially first experience) to the users.

from ava.

sindresorhus avatar sindresorhus commented on May 21, 2024

@vdemedes I'm afraid of that too, but I'm thinking we add it undocumented, dogfood it, and only document it when we feel it's stable enough and we're ready to take on the addition support burden. And many people have told me watch is a big reason for them to stay with Mocha, which makes me think watch is part of providing a great experience.

from ava.

vadimdemedes avatar vadimdemedes commented on May 21, 2024

@sindresorhus Ok, sounds like a plan ;)

from ava.

tomazzaman avatar tomazzaman commented on May 21, 2024

I too come from Mocha-world and this was by far bigger selling point than speed. I want continuous feedback loop more than speed.

from ava.

sindresorhus avatar sindresorhus commented on May 21, 2024

@tomazzaman Thanks. The more usage feedback we get on issues, the easier it is for us to make informed choices :) Feel free to comment opinions on any other issue. You might also like #115.

from ava.

tomazzaman avatar tomazzaman commented on May 21, 2024

Ha! Indeed I like it, but not sure whether my JS skills are there yet. I've written a few watchers for my own projects (so I know a thing or two about it), but nothing as complex as #115. Maybe I'm just needlessly intimidated though :)

from ava.

sindresorhus avatar sindresorhus commented on May 21, 2024

@tomazzaman I didn't mean you should do it. Just that you might find the idea interesting ;)

from ava.

novemberborn avatar novemberborn commented on May 21, 2024

I'd be happy to take this on. I've used watchers extensively when building dev stacks.

from ava.

tomazzaman avatar tomazzaman commented on May 21, 2024

@novemberborn @sindresorhus I've created a PR #465 , just a basic watcher for now, but works. I'd be more than happy to hear your feedback to learn whether I'm on the right track

from ava.

sindresorhus avatar sindresorhus commented on May 21, 2024

This needs to be taken into account: babel/babel#3307

from ava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.