You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was running the test suite from a Docker container, using the official node image. I managed to make it pass by setting the timezone to New York:
$ docker run -it --rm -v $PWD:/opt -w /opt -e "TZ=America/New_York" node npm test
PASS tests/index.js
react-moment
✓ children (34ms)
✓ date (9ms)
✓ parse (2ms)
✓ format (3ms)
✓ fromNow (10ms)
✓ from (12ms)
✓ toNow (9ms)
✓ to (7ms)
✓ calendar (5ms)
✓ unix (3ms)
✓ utc (2ms)
✓ other (4ms)
Test Summary
› Ran all tests.
› 12 tests passed (12 total in 1 test suite, run time 1.054s)
nclavaud
changed the title
Test suite fails
Test suite fails when current UTC offset is not -0500
Dec 9, 2016
Hi,
Running the test suite here fails:
I guess this has something to do with the UTC offset, either the parsing or the formatting.
The text was updated successfully, but these errors were encountered: