Comments (7)
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.
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.
There's also https://www.npmjs.com/package/eslint-plugin-mocha which has more configuration options.
from fluent.js.
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.
using node v6.11.2 and npm 5.4.1 fresh clone of the repo:
using node v8.9.1, seems all tests are passing
from fluent.js.
I found out why the tests fail. Node 6.x doesn't support Object.entries
which is used here:
fluent.js/fluent/src/builtins.js
Line 29 in da0a580
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.
With #94 and #95 merged, this should be good to close. Thanks, @hkasemir, for the report!
from fluent.js.
Related Issues (20)
- Would appreciate more detailed documentation for <Localized> HOT 6
- Failing FluentDateTime test due to time zone differences of machine running test
- @fluent/bundle 0.17.0 broke @microsoft/api-extractor HOT 2
- Not able to compile langneg HOT 3
- Pass variables from app, to a fluent selector HOT 1
- Deno Support? HOT 3
- Automatic Eastern Arabic numerals in Arabic translations?H HOT 1
- Transform placeables (escape values)
- [fluent-syntax] Calling `clone()` on a node should return a value with node's type, not `BaseNode`
- Ability to compile bundle into a smaller resource HOT 4
- Tests are ignoring junk annotations HOT 2
- Support range versions of NUMBER and DATETIME as default builtins HOT 4
- [fluent-react] Support ref forwarding in `withLocalization` HOT 1
- Disabling unicode isolation on per-placeable basis HOT 2
- Locale regex doesnt take into account UN.M49 HOT 1
- Trying to convert Fluent to ActionScript HOT 1
- Porting FluentJS to ActionScript
- @fluent/react marks @fluent/bundle as incompatible
- Intl.DateTimeFormat timeZone option HOT 1
- DOMLocalization setArgs method
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 fluent.js.