@amazon/vinyl-jasmine-wrapper 1.0.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.
@@ -0,0 +1,5 @@
1
+ import './polyfills';
2
+ import 'jasmine-core/lib/jasmine-core/jasmine-html.js';
3
+ import 'jasmine-core/lib/jasmine-core/boot0.js';
4
+ import 'jasmine-core/lib/jasmine-core/boot1.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,aAAa,CAAA;AAEpB,OAAO,+CAA+C,CAAA;AACtD,OAAO,wCAAwC,CAAA;AAC/C,OAAO,wCAAwC,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Copyright (c) 2025. Amazon.com, Inc. or its affiliates. All rights reserved.
3
+ */
4
+ // Ordinarily this would be a bad practice to import specific non-exported files like this,
5
+ // however, the jasmine browser runner does not support a wide range of browsers; it does not
6
+ // use babel. The jasmine and jasmine-core modules are meant for node and have no browser
7
+ // artifacts. The documented approach for a standalone jasmine runner is to use the jasmine releases
8
+ // at https://github.com/jasmine/jasmine/releases. However, copying the sources from the release
9
+ // artifacts is less maintainable than listing the jasmine-core files needed from npm.
10
+ import './polyfills';
11
+ import 'jasmine-core/lib/jasmine-core/jasmine-html.js'; // must be before boot
12
+ import 'jasmine-core/lib/jasmine-core/boot0.js';
13
+ import 'jasmine-core/lib/jasmine-core/boot1.js';
14
+ // The default is 5s. Increase in order to allow time for the web server to start.
15
+ jasmine.DEFAULT_TIMEOUT_INTERVAL = 15_000;
@@ -0,0 +1,4 @@
1
+ import 'core-js/features/queue-microtask';
2
+ import 'core-js/features/number/to-precision';
3
+ import 'core-js/features/number/to-fixed';
4
+ //# sourceMappingURL=polyfills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyfills.d.ts","sourceRoot":"","sources":["../src/polyfills.ts"],"names":[],"mappings":"AAMA,OAAO,kCAAkC,CAAA;AACzC,OAAO,sCAAsC,CAAA;AAC7C,OAAO,kCAAkC,CAAA"}
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ // Required by Jasmine
6
+ import 'core-js/features/queue-microtask';
7
+ import 'core-js/features/number/to-precision';
8
+ import 'core-js/features/number/to-fixed';
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@amazon/vinyl-jasmine-wrapper",
3
+ "version": "1.0.0",
4
+ "description": "A wrapper for jasmine core to allow an html runner to boot on legacy browsers",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/amazonmusic/vinyl.git"
8
+ },
9
+ "license": "UNLICENSED",
10
+ "module": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "type": "module",
13
+ "files": [
14
+ "dist/*"
15
+ ],
16
+ "scripts": {
17
+ "clean": "rimraf --glob dist .eslintcache \"**/*.tsbuildinfo\"",
18
+ "build": "tsc",
19
+ "build:release": "npm run build",
20
+ "prettier:check": "prettier . --ignore-path ../../.prettierignore --cache --check",
21
+ "prettier:write": "prettier . --ignore-path ../../.prettierignore --cache --write",
22
+ "eslint:check": "eslint . --cache --max-warnings=0",
23
+ "eslint:write": "eslint . --cache --fix",
24
+ "lint": "npm run eslint:check && npm run prettier:check",
25
+ "lint:write": "npm run eslint:write && npm run prettier:write",
26
+ "test": "echo done",
27
+ "test:coverage": "echo done"
28
+ },
29
+ "main": "./dist/index.cjs",
30
+ "exports": {
31
+ ".": {
32
+ "import": "./dist/index.js"
33
+ }
34
+ },
35
+ "typesVersions": {}
36
+ }