Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for the love of dog, tests #10

Open
bradparker opened this issue Aug 17, 2016 · 1 comment
Open

Tests for the love of dog, tests #10

bradparker opened this issue Aug 17, 2016 · 1 comment

Comments

@bradparker
Copy link
Contributor

Testing webpack output is possible. Just needs to be setup.

With webpack you can specify both an input and output filesystem. Allowing us to mock the filesystem into memory entirely using say: https://github.com/webpack/memory-fs

The below shows that inputFileSystem and outputFileSystem are public attributes of compiler instances.
https://github.com/webpack/webpack/blob/90d537ef4ce1092f76bd02ee2a75838c67b809fc/lib/Compiler.js#L148-L149

@bradparker
Copy link
Contributor Author

I'll use this to keep track of tests which I think are missing.
We still need some tests to ensure that a basic set of plugins / loaders are being included from createConfigs

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

No branches or pull requests

1 participant