Build a proper test suite
Closed this issue · 1 comments
I wrote the bulk of this when I should have been in a class's test study session, so I neglected proper tests.
Currently, tests utilize existing global installs of webpack, prettier; this means tests may result in different outcomes across different systems.
So, I think its best if the project move to testing via a tool like Jest.
To do this:
- First raise
package.json
,README.md
to the root directory from/src
Then, the test suite should:
- Involve Webpack in some manner other than a dependency on the published module
- Would a peerDependency be suitable? Or a test-suite specific
package.json
to version Webpack for the tests?
- Would a peerDependency be suitable? Or a test-suite specific
- Utilize Webpack's programmatic API to test against some defined configurations and compare the initial sources vs modified sources
I plan to tackle this next, but as I'm working full time and working to launch a startup whilst also job hunting, this naturally may be a bit slow 😅
By the way, this repo has seen an increased amount of traffic lately - If you're reading this, any and all contributions are welcome! So if you're even interested to write a single test or just fix a typo, I'd love to help you any way I can.