Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Fix Travis tests #2

Merged
merged 3 commits into from
Nov 7, 2018
Merged

Fix Travis tests #2

merged 3 commits into from
Nov 7, 2018

Conversation

vlasy
Copy link
Contributor

@vlasy vlasy commented Nov 6, 2018

It is not documented but Travis uses NODE_ENV=test environment variable which caused cosmas not to write anything and thus failing most of the tests. This fixes it.

Also some tests were refactored in an effort to fix Travis problem.

@smolijar
Copy link
Contributor

smolijar commented Nov 7, 2018

@vlasy The tests fail on my workstation as well, the reason that it passes on your machine is because you probably have NODE_ENV set. Travis does not set anything AFAIK, this is done by Jest (sets to test if not set).

I would suggest setting the var in package.json before running tests, and removing it from the Travis config.

@smolijar smolijar merged commit 9102895 into master Nov 7, 2018
@smolijar smolijar deleted the change/async-tests branch November 7, 2018 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants