Skip to content

Conversation

@LitoMore
Copy link
Contributor

Fix #153

['..', 'is-npm'].forEach(clearModule);
process.stdout.isTTY = true;
mock('is-npm', isNpmReturnValue || false);
mock('is-npm', {isNpm: isNpmReturnValue || false});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The API of [email protected] has been changed. So I updated the mock export.

},
"scripts": {
"test": "xo && ava --timeout=20s"
"test": "xo && ava --timeout=20s -s"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should run tests serially for solving the conflict of mock require.

@SBoudrias
Copy link
Contributor

Thanks!!

@SBoudrias SBoudrias merged commit 79e89ad into sindresorhus:master Apr 12, 2019
@LitoMore LitoMore deleted the fix-test branch April 12, 2019 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix failing test

2 participants