@amazon/vinyl-jasmine-wrapper 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/package.json +3 -2
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @amazon/vinyl-jasmine-wrapper
|
|
2
|
+
|
|
3
|
+
[](https://amazonmusic.github.io/vinyl)
|
|
4
|
+
[](https://www.npmjs.com/package/@amazon/vinyl-jasmine-wrapper)
|
|
5
|
+
[](https://bundlejs.com/?q=@amazon/vinyl-jasmine-wrapper)
|
|
6
|
+
|
|
7
|
+
A browser-friendly bundling of `jasmine-core` for the HTML runner. Pulls in the
|
|
8
|
+
boot scripts and a small set of polyfills so the runner boots on legacy browsers
|
|
9
|
+
(Chrome 52+, Firefox 52+, Edge 18+, Safari 8+) where `jasmine-core`'s
|
|
10
|
+
ESM/Node-targeted artifacts otherwise wouldn't load.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
npm install --save-dev @amazon/vinyl-jasmine-wrapper
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
Bundle the wrapper with your tests and load the result alongside Jasmine's HTML
|
|
21
|
+
reporter assets:
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import '@amazon/vinyl-jasmine-wrapper'
|
|
25
|
+
|
|
26
|
+
// then import your specs
|
|
27
|
+
import './specs/myComponent.test'
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The wrapper sets `jasmine.DEFAULT_TIMEOUT_INTERVAL` to 15s to give the test web
|
|
31
|
+
server time to start before the first spec runs.
|
|
32
|
+
|
|
33
|
+
See the player docs at
|
|
34
|
+
[amazonmusic.github.io/vinyl](https://amazonmusic.github.io/vinyl).
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amazon/vinyl-jasmine-wrapper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A wrapper for jasmine core to allow an html runner to boot on legacy browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,9 +29,10 @@
|
|
|
29
29
|
"main": "./dist/index.cjs",
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|
|
32
|
+
"development": "./src/index.ts",
|
|
32
33
|
"import": "./dist/index.js"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
"typesVersions": {},
|
|
36
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "fbb8f1c60c5ada4a11f13954bb6bcb52f3cb0c5a"
|
|
37
38
|
}
|