Amazon Vinyl logo Amazon Vinyl v3.2.1

@amazon/vinyl-jasmine-wrapper

Website npm size

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-wrapper

Usage

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