-
Notifications
You must be signed in to change notification settings - Fork 33
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
[TEST] Add automatic bundle tests #1010
Conversation
002222b
to
0343687
Compare
Ensure that a page using the bundle is able to display a BPMN diagram. The utils code checking the generated SVG is shared with end-to-end tests. The test is very fast: it doesn't need a dev server to run, the slower part is the puppeteer startup.
Avoid too much workflow This reverts commit 8b94542
0343687
to
75746a3
Compare
@@ -115,7 +115,7 @@ if (!buildBundles) { | |||
{ file: pkg.main, format: 'cjs' }, | |||
], | |||
}; | |||
rollupConfigs = [configIIFE, configIIFEMinified]; | |||
rollupConfigs = [configIIFE, configIIFEMinified, configBundles, configBundlesMinified]; |
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.
👍
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.
I guess I removed the other bundles to speedup the generation while testing the new minified IIFE bundle, and we didn't notice the removal 😈
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.
well done :)
Kudos, SonarCloud Quality Gate passed!
|
We now have a way to check that bundles are generated and the GitHub workflow
checks this each time the build is run.
This test shows that, in 64aa112, we have removed by mistake the CommonJS and ESM
bundles generation.
For the IIFE bundle, we also ensure that a test page using the bundle is able to display
a BPMN diagram. The utils code checking the generated SVG is shared with end-to-end tests.
The test is very fast: it doesn't need a dev server to run, the slower part is
the puppeteer startup.
Adding test has also shown that this page hasn't been migrated correctly when the GlobalOptions
have been refactored in 6335a53.
closes #600