Giter Site home page Giter Site logo

Comments (7)

zbraniecki avatar zbraniecki commented on May 22, 2024

The .only has been introduced in #81. With it, I see:

> make test
  59 passing (99ms)
  49 pending

when i remove it I see:

> make test
  196 passing (170ms)
  54 pending

@hkasemir - can you investigate which tests are failing and why? I suspect something is off with your node environment and its different than the one we have. It may be that you need Intl API, or it may be that we need to handle more variants of Node+Intl combinations, but I'd like to start with identifying tests and their failures.

from fluent.js.

stasm avatar stasm commented on May 22, 2024

Sorry about the regression introduced in #81. I use .only quite often to isolate a single test during development. I found https://www.npmjs.com/package/eslint-plugin-no-only-tests which would prevent such errors in the future.

from fluent.js.

stasm avatar stasm commented on May 22, 2024

There's also https://www.npmjs.com/package/eslint-plugin-mocha which has more configuration options.

from fluent.js.

stasm avatar stasm commented on May 22, 2024

I opened #94 to add a linting rule forbidding .only tests.

I have the same output as @zbraniecki before and after fixing that rogue .only in functions_builtin_test.js. I tried on a fresh clone and I was able to set it up by following the instructions in the README. I'm using node 8.9.1.

from fluent.js.

hkasemir avatar hkasemir commented on May 22, 2024

using node v6.11.2 and npm 5.4.1 fresh clone of the repo:
image

using node v8.9.1, seems all tests are passing 🤔 could be a good idea to define which version of node is required in the readme under instructions for local dev. Glad that was an easy fix. I did take the liberty of checking #93 to make sure it was not fixed by node version, but it is still an issue.

from fluent.js.

stasm avatar stasm commented on May 22, 2024

I found out why the tests fail. Node 6.x doesn't support Object.entries which is used here:

for (const [name, opt] of Object.entries(opts)) {

Given that node 8.x has already become the active LTS version I think it makes sense to explicitly drop support for 6.x (and 7.x too, even though the tests actually pass on 7.x).

from fluent.js.

stasm avatar stasm commented on May 22, 2024

With #94 and #95 merged, this should be good to close. Thanks, @hkasemir, for the report!

from fluent.js.

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.