Giter VIP home page Giter VIP logo

Comments (10)

ljharb avatar ljharb commented on August 24, 2024 3

Also https://npmjs.com/tape, which is the only test runner I'm aware of that works on older nodes - my typical advice is to use jest or mocha for apps, and tape for packages, since packages should be supporting as old an engine as possible (#156).

from package-maintenance.

mcollina avatar mcollina commented on August 24, 2024 1

I'm personally a huge fan of tap. I found that mocha tests tends to be brittle and flaky, because it runs all files within a single process. If cleanup is not done correctly, it will be really hard to prevent bad interactions between the tests.

Overall I do not think we should be expressing preferences here, as long as unit tests are present. We can highlight several nice patterns.

from package-maintenance.

rxmarbles avatar rxmarbles commented on August 24, 2024 1

agree on not expressing preferences and the proposal should focus on the available testing frameworks/methodologies.

from package-maintenance.

boneskull avatar boneskull commented on August 24, 2024 1

A testing guidelines doc has been merged, written by @ghinks. Should this issue be closed?

from package-maintenance.

wesleytodd avatar wesleytodd commented on August 24, 2024

Overall I do not think we should be expressing preferences here

Completely agree! I have had the opposite experience with Mocha, it has been more stable than other runners because of its single process methodology :). The take away from this is that we should be agnostic to technical implementation.

from package-maintenance.

mhdawson avatar mhdawson commented on August 24, 2024

I agree we should provide recommendations on "what" should be done, and then add information on options for "how" to do that.

from package-maintenance.

ahmadnassri avatar ahmadnassri commented on August 24, 2024

should start with a simple context of "Why", assuming lowest level of knowledge, starting with alignment on the value of testing, why it's needed, and what benefits it provides to both the package maintainer and the users.

from package-maintenance.

craftninja avatar craftninja commented on August 24, 2024

From discussions in meeting April 22 #196

  • guidance around "how do I go from 0 to some testing"
  • "there should be something in a module's package so you run npm test and see output, very clear whether you pass or fail"

From PR comments:

from package-maintenance.

dominykas avatar dominykas commented on August 24, 2024

Note to self: extend both - testing and ci/cd guidelines with additional info (and link to) the "Please test in LTS" blogpost (#260).

from package-maintenance.

mhdawson avatar mhdawson commented on August 24, 2024

closing

from package-maintenance.

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.