@amazon/vinyl-jasmine-wrapper
v1.1.1
Published
A wrapper for jasmine core to allow an html runner to boot on legacy browsers
Downloads
475
Readme
@amazon/vinyl-jasmine-wrapper
A browser-friendly bundling of jasmine-core for the HTML runner. Pulls in the
boot scripts and a small set of polyfills so the runner boots on legacy browsers
(Chrome 52+, Firefox 52+, Edge 18+, Safari 8+) where jasmine-core's
ESM/Node-targeted artifacts otherwise wouldn't load.
Install
npm install --save-dev @amazon/vinyl-jasmine-wrapperUsage
Bundle the wrapper with your tests and load the result alongside Jasmine's HTML reporter assets:
import '@amazon/vinyl-jasmine-wrapper'
// then import your specs
import './specs/myComponent.test'The wrapper sets jasmine.DEFAULT_TIMEOUT_INTERVAL to 15s to give the test web
server time to start before the first spec runs.
See the player docs at amazonmusic.github.io/vinyl.
License
Apache-2.0
