Giter Site home page Giter Site logo

Comments (7)

JaKXz avatar JaKXz commented on May 29, 2024

@davidtheclark what's blocking me from fixing this is the tests failing from a clean state on master when I clone and run yarn install on my system with the latest stable node (v7.4.0 at time of writing). Does this package depend on a specific version of node?

I noticed that node v0.12 support was added recently even though the LTS support dropped as of December. Are there plans to move forward again?

  • regardless, I'm quite sure that the tests should be written in ES2015+ since AVA transpiles them anyway.

from cosmiconfig.

davidtheclark avatar davidtheclark commented on May 29, 2024

@JaKXz How are the tests failing? What is the error? Have you tried seeing if the tests pass on Travis with Node 7 (by changing the .travis.yml file in a PR)?

I just tried rm -rf node_modules && yarn install && npm test and had no problem. I am on Node v4.7.0, Yarn v0.18.1.

Does this package depend on a specific version of node?

As specified in the package.json, this package should work on Node 0.12 and higher.

I noticed that node v0.12 support was added recently

It was re-added, because we removed support but then some users wanted it back, and it was easy to restore.

Are there plans to move forward again?

I don't understand "move forward" here. There shouldn't be a problem with higher versions of Node. Maybe your error message will clarify things.

I'm quite sure that the tests should be written in ES2015+ since AVA transpiles them anyway.

I disagree. I'd rather have the codebase stick to one feature set than write the tests differently than the rest of the code.

from cosmiconfig.

JaKXz avatar JaKXz commented on May 29, 2024

@davidtheclark the failures are here: https://travis-ci.org/davidtheclark/cosmiconfig/jobs/189389524

I had spent some time a few weeks ago attempting to debug the failures locally but made no progress without context. I suppose I'll make a separate issue about the tests failing on node v7 (done: #53).

re:

I'd rather have the codebase stick to one feature set than write the tests differently than the rest of the code

using t for all assertions is the compromise that I'm suggesting, then.

from cosmiconfig.

davidtheclark avatar davidtheclark commented on May 29, 2024

https://github.com/avajs/ava/blob/master/docs/common-pitfalls.md#why-are-the-enhanced-assertion-messages-not-shown

You have to name the variable t? That is stupid. I wonder if these other failures are also caused by AVA bugs. At some point I'll try switching to tape to see what happens on Node 7. Or if you want to speed things along, feel free to give that a shot.

from cosmiconfig.

JaKXz avatar JaKXz commented on May 29, 2024

I've been meaning to give jest a whirl, would you mind that?

from cosmiconfig.

davidtheclark avatar davidtheclark commented on May 29, 2024

@JaKXz If you'd like to try, sure! It will be much more effort, though, since the syntax is more different from AVA's and the way of handling mocks will need to change. If that's the kind of challenge you seek, go for it.

from cosmiconfig.

davidtheclark avatar davidtheclark commented on May 29, 2024

Closing as stale, and probably out of scope for this package.

from cosmiconfig.

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.