This repository has been archived by the owner on Jul 14, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration tests for all active and maintained components to sho…
…w that they can all be bundled correctly with the service (#35) * Add script to create a list of all components, this will be used in the integration tests * Add an integration test which checks all components which are active or maintained and have JavaScript are able to be bundled via the JavaScript bunding API endpoint * use jsdom instead of vm as it gives us all the correct global variables that a real DOM would have * Make webpack use the .bower.json file if a bower.json does not exist. This is the case when a bower component has been published that has not included it's bower.json file * Enable the request log to be configurable, so that we can turn the logs off when running tests * Ignore all o-comment components as they are being rebuilt entirely and currently are written in a way which is not valid browser-based JavaScript * Add fetch polyfill to enable running the JS bundles inside JSDOM * Add integration tests for css bundling of all active and maintained components * fix lint error * update components.json * Update webpack-config-bower.js * Add comment about .bower.json * Update fetch-components.js * fix lint issue * move url construction into a function * Create function to execute JS in a browser context to make tests more readable * move repeated code to top of file * move more repetition to top of file * make test more readable * fix tests
- Loading branch information