@wdio/browser-runner 8.18.0 → 8.19.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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/vite/utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAI/D,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,iBAAU,mBA6HvH;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,MAAM,gBAa7E;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAY7D;AAED,wBAAsB,qBAAqB,CAAE,GAAG,EAAE,MAAM,qBAqBvD;AAGD,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,+BAgBvD;AAGD,wBAAsB,mBAAmB,CAAE,CAAC,EAAE,MAAM,EAAE,UAAU,WAAY,+BAK3E;AAED,wBAAgB,MAAM,CAAE,CAAC,EAAE,MAAM,oBAEhC;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,UAU9D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/vite/utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAI/D,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,iBAAU,mBAkIvH;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,MAAM,gBAa7E;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAY7D;AAED,wBAAsB,qBAAqB,CAAE,GAAG,EAAE,MAAM,qBAqBvD;AAGD,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,+BAgBvD;AAGD,wBAAsB,mBAAmB,CAAE,CAAC,EAAE,MAAM,EAAE,UAAU,WAAY,+BAK3E;AAED,wBAAgB,MAAM,CAAE,CAAC,EAAE,MAAM,oBAEhC;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,UAU9D"}
@@ -46,6 +46,9 @@ export async function getTemplate(options, env, spec, p = process) {
46
46
  catch (err) {
47
47
  log.error(`Failed to setup source-map-support: ${err.message}`);
48
48
  }
49
+ const mochaPath = await resolve('mocha', `${rootFileUrl}/node_modules`);
50
+ const mochaCSSHref = path.join(url.fileURLToPath(path.dirname(mochaPath)), 'mocha.css');
51
+ const mochaJSSrc = path.join(url.fileURLToPath(path.dirname(mochaPath)), 'mocha.js');
49
52
  return /* html */ `
50
53
  <!doctype html>
51
54
  <html>
@@ -78,7 +81,8 @@ export async function getTemplate(options, env, spec, p = process) {
78
81
  return mod
79
82
  }
80
83
  </script>
81
- <script type="module" src="/node_modules/mocha/mocha.js"></script>
84
+ <link rel="stylesheet" href="/@fs/${mochaCSSHref}">
85
+ <script type="module" src="/@fs/${mochaJSSrc}"></script>
82
86
  ${sourceMapScript}
83
87
  <script type="module">
84
88
  ${sourceMapSetupCommand}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browser-runner",
3
- "version": "8.18.0",
3
+ "version": "8.19.0",
4
4
  "description": "A WebdriverIO runner to run unit tests tests in the browser.",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browser-runner",
@@ -35,13 +35,13 @@
35
35
  "@types/istanbul-lib-source-maps": "^4.0.1",
36
36
  "@types/node": "^20.1.0",
37
37
  "@vitest/spy": "^0.34.1",
38
- "@wdio/globals": "8.18.0",
39
- "@wdio/local-runner": "8.18.0",
38
+ "@wdio/globals": "8.19.0",
39
+ "@wdio/local-runner": "8.19.0",
40
40
  "@wdio/logger": "8.16.17",
41
- "@wdio/mocha-framework": "8.18.0",
41
+ "@wdio/mocha-framework": "8.19.0",
42
42
  "@wdio/protocols": "8.18.0",
43
- "@wdio/types": "8.17.0",
44
- "@wdio/utils": "8.18.0",
43
+ "@wdio/types": "8.19.0",
44
+ "@wdio/utils": "8.19.0",
45
45
  "ast-types": "^0.14.2",
46
46
  "deepmerge-ts": "^5.0.0",
47
47
  "expect-webdriverio": "^4.2.5",
@@ -60,8 +60,8 @@
60
60
  "vite": "~4.4.6",
61
61
  "vite-plugin-istanbul": "^5.0.0",
62
62
  "vite-plugin-top-level-await": "^1.3.0",
63
- "webdriver": "8.18.0",
64
- "webdriverio": "8.18.0",
63
+ "webdriver": "8.19.0",
64
+ "webdriverio": "8.19.0",
65
65
  "ws": "^8.13.0"
66
66
  },
67
67
  "scripts": {
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/ws": "^8.5.4",
75
- "@wdio/runner": "8.18.0"
75
+ "@wdio/runner": "8.19.0"
76
76
  },
77
- "gitHead": "66cd3ccfe1c8a94f89afa11fb51f58742ae379c5"
77
+ "gitHead": "5179b3b3d0bced033e719890baf4517137ac1576"
78
78
  }