jasmine-browser-runner 3.0.0-beta.1 → 3.0.0-beta.2

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 CHANGED
@@ -345,13 +345,13 @@ import('./spec/support/jasmine-browser.mjs')
345
345
  jasmine-browser-runner tests itself across popular browsers (Safari, Chrome,
346
346
  Firefox, and Microsoft Edge) as well as Node.
347
347
 
348
- | Environment | Supported versions |
349
- |-------------------|--------------------------|
350
- | Node | 18, 20, 22 |
351
- | Safari | 15-17 |
352
- | Chrome | Evergreen |
353
- | Firefox | Evergreen, 102, 115, 128 |
354
- | Edge | Evergreen |
348
+ | Environment | Supported versions |
349
+ |-------------------|----------------------------|
350
+ | Node | 18, 20, 22 |
351
+ | Safari | 15*, 16, 17 |
352
+ | Chrome | Evergreen |
353
+ | Firefox | Evergreen, 102*, 115*, 128 |
354
+ | Edge | Evergreen |
355
355
 
356
356
  For evergreen browsers, each version of jasmine-browser-runner is tested against
357
357
  the version of the browser that is available to us at the time of release. Other
@@ -359,6 +359,11 @@ browsers, as well as older & newer versions of some supported browsers, are
359
359
  likely to work. However, jasmine-browser-runner isn't tested against them and
360
360
  they aren't actively supported.
361
361
 
362
+ \* Environments that are past end of life are supported on a best-effort
363
+ basis. They may be dropped in a future minor release if continued support
364
+ becomes impractical.
365
+
366
+
362
367
  To find out what environments work with a particular Jasmine release, see the [release notes](https://github.com/jasmine/jasmine/tree/main/release_notes).
363
368
 
364
369
  Copyright (c) 2019 Pivotal Labs<br>
package/lib/command.js CHANGED
@@ -80,12 +80,6 @@ const subCommands = [
80
80
  type: 'string',
81
81
  description: 'specify a seed for randomization',
82
82
  },
83
- {
84
- name: 'reporter',
85
- type: 'string',
86
- description:
87
- 'path to reporter to use instead of the default Jasmine reporter',
88
- },
89
83
  {
90
84
  name: 'browser',
91
85
  type: 'string',
@@ -13,7 +13,9 @@ export default {
13
13
  env: {
14
14
  stopSpecOnExpectationFailure: false,
15
15
  stopOnSpecFailure: false,
16
- random: true
16
+ random: true,
17
+ // Fail if a suite contains multiple suites or specs with the same name.
18
+ forbidDuplicateNames: true
17
19
  },
18
20
 
19
21
  // For security, listen only to localhost. You can also specify a different
@@ -17,7 +17,9 @@ export default {
17
17
  env: {
18
18
  stopSpecOnExpectationFailure: false,
19
19
  stopOnSpecFailure: false,
20
- random: true
20
+ random: true,
21
+ // Fail if a suite contains multiple suites or specs with the same name.
22
+ forbidDuplicateNames: true
21
23
  },
22
24
 
23
25
  // For security, listen only to localhost. You can also specify a different
package/lib/server.js CHANGED
@@ -19,8 +19,6 @@ class Server {
19
19
  this.options = { ...options };
20
20
  this._deps = deps || { http, https };
21
21
  this.express = this.options.express || defaultExpress;
22
- this.useHtmlReporter =
23
- options.useHtmlReporter === undefined ? true : options.useHtmlReporter;
24
22
  this.projectBaseDir = options.projectBaseDir || path.resolve();
25
23
  this.jasmineCore = options.jasmineCore || require('./jasmineCore');
26
24
  this.jasmineCssFiles = this.jasmineCore.files.cssFiles.map(function(
@@ -70,10 +68,6 @@ class Server {
70
68
 
71
69
  getSupportFiles() {
72
70
  const result = ['/__support__/loaders.js'];
73
- if (!this.useHtmlReporter) {
74
- result.push('/__support__/clearReporters.js');
75
- }
76
-
77
71
  result.push('/__support__/batchReporter.js');
78
72
  return result;
79
73
  }
package/lib/types.js CHANGED
@@ -8,12 +8,6 @@
8
8
  * certainly want to provide at least specFiles and srcFiles as well.
9
9
  * @see Server
10
10
  */
11
- /**
12
- * Whether to use Jasmine's default HTML reporter.
13
- * @name ServerCtorOptions#useHtmlReporter
14
- * @type boolean | undefined
15
- * @default true
16
- */
17
11
  /**
18
12
  * An array of CSS file paths or {@link https://github.com/isaacs/node-glob#glob-primer|globs}
19
13
  * that match CSS files. Each path or glob will be evaluated relative to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jasmine-browser-runner",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "Serve and run your Jasmine specs in a browser",
5
5
  "bin": "bin/jasmine-browser-runner",
6
6
  "exports": "./index.js",
@@ -43,13 +43,13 @@
43
43
  "selenium-webdriver": "^4.12.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "jasmine-core": "^5.0.0"
46
+ "jasmine-core": "^5.5.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "eslint": "^8.50.0",
50
50
  "eslint-plugin-jasmine": "^4.1.3",
51
51
  "jasmine": "^5.0.0",
52
- "jasmine-core": "^5.0.0",
52
+ "jasmine-core": "^5.5.0",
53
53
  "prettier": "^1.17.1",
54
54
  "shelljs": "^0.8.3",
55
55
  "temp": "^0.9.4"
@@ -1,2 +0,0 @@
1
- /* eslint-env browser, jasmine */
2
- jasmine.getEnv().clearReporters();