Skip to content

Add tests for CachePlugin#3840

Merged
TheLarkInn merged 1 commit intowebpack:masterfrom
alistairjcbrown:add-cacheplugin-tests
Jan 8, 2017
Merged

Add tests for CachePlugin#3840
TheLarkInn merged 1 commit intowebpack:masterfrom
alistairjcbrown:add-cacheplugin-tests

Conversation

@alistairjcbrown
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Add tests for CachePlugin

Did you add tests for your changes?

This PR is only tests

If relevant, link to documentation update:

N/A

Summary

Based on the coveralls report, the CachePlugin file has 84% test coverage. There is no CachePlugin specific test file - this is added in this PR and aims to achieve 100% test coverage.
https://coveralls.io/builds/9567491/source?filename=lib%2FCachePlugin.js

Does this PR introduce a breaking change?

No

Other information

The coverage of this file appears to depend on whether it is called in other tests (in other builds it has a coverage of 86%) - https://coveralls.io/builds/9568583/source?filename=lib%2FCachePlugin.js

The applyPluginWithOptions helper function has been update to expose the plugin and plugin environment if a custom context is provided. This is a backwards compatible change.

Copy link
Copy Markdown
Member

@TheLarkInn TheLarkInn left a comment

Choose a reason for hiding this comment

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

Awesome work. 💯💯

@TheLarkInn TheLarkInn merged commit af00214 into webpack:master Jan 8, 2017
@alistairjcbrown alistairjcbrown deleted the add-cacheplugin-tests branch January 8, 2017 10:55
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.

2 participants