-
Notifications
You must be signed in to change notification settings - Fork 63
test: fix && update flaky snapshots #66
test: fix && update flaky snapshots #66
Conversation
829793b
to
aedc424
Compare
Codecov Report
@@ Coverage Diff @@
## master #66 +/- ##
=======================================
Coverage ? 100%
=======================================
Files ? 2
Lines ? 6
Branches ? 0
=======================================
Hits ? 6
Misses ? 0
Partials ? 0 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 These are very valueable changes you made so far, especially regarding the test setup. Thx in advance :)
@@ -19,6 +19,11 @@ export default function ({ fixture = 'basic.js', options, extend = {} } = {}) { | |||
}], | |||
}, | |||
...extend, | |||
plugins: [ | |||
new webpack.optimize.CommonsChunkPlugin({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this split the webpack runtime from the test bundle ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, you can see the change in the snapshot diff, its much cleaner 😄
test/wrap-loader.js
Outdated
@@ -0,0 +1,10 @@ | |||
import loader from '../src/cjs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Put wrap-loader.js
&& webpack.js
into a e.g utils
folder and rename wrap-loader => loader.js
please
|– test
| |– __snapshots__
| |– index.test.js
| |– ${option.name}.test.js
| |– ...
| |– utils
| | |– webpack.js (Compiler/Runner)
| | |– stats.js (Generic Stats/Compilation Normalizer [ TODO ])
| | |– loader.js (Generic Loader Normalizer)
Sry to bother you with this all the time, it's drafting out the base test system on the job :D
aedc424
to
cec1986
Compare
@michael-ciniawsky done! |
Ship it @michael-ciniawsky |
Notable changes: