Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

injected Stats.presetToOptions to parse { stats: String } into Object #73

Merged
merged 3 commits into from
Jan 19, 2018

Conversation

oleg-andreyev
Copy link
Contributor

@coveralls
Copy link

coveralls commented Jan 17, 2018

Coverage Status

Coverage decreased (-0.3%) to 86.713% when pulling 9168063 on oleg-andreyev:ignore-stats-as-string into 8122728 on trivago:master.

@efegurkan
Copy link
Contributor

Thanks for the PR's looks good except there is a failing test. can you check it please.

@oleg-andreyev
Copy link
Contributor Author

oleg-andreyev commented Jan 18, 2018

@efegurkan the weird thing is that when I run only should watcher.close and done in watch mode on SIGINT it passes, when I run suite for webpackWorker it fails, I'll try to take a look - I'm not a jest person yet.

image
image

The only reason for this could be that different instances of class/module are compared.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 87.179% when pulling 3b18380 on oleg-andreyev:ignore-stats-as-string into 8122728 on trivago:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 87.179% when pulling 3b18380 on oleg-andreyev:ignore-stats-as-string into 8122728 on trivago:master.

webpackWorker = require('../webpackWorker.js');
notifyIPCWatchCompileDone = require('../watchModeIPC').notifyIPCWatchCompileDone;
jest.doMock('testConfig', () => ({ webpack: 'config' }), { virtual: true });
jest.resetModules();
jest.clearAllMocks();
process.removeAllListeners();
Copy link
Contributor

@efegurkan efegurkan Jan 19, 2018

Choose a reason for hiding this comment

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

That explains why it was failing on test suit only. Nice catch! 😃

@efegurkan
Copy link
Contributor

Looks good to me 👍 Thanks for the PR

@efegurkan efegurkan merged commit 2c50d31 into trivago:master Jan 19, 2018
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.

4 participants