@wdio/browser-runner 8.3.6 → 8.3.7

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":"constants.d.ts","sourceRoot":"","sources":["../../src/vite/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAgB1F,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,YAAY,CAyBrD,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/vite/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAgB1F,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,YAAY,CAsBrD,CAAA"}
@@ -23,10 +23,7 @@ export const DEFAULT_VITE_CONFIG = {
23
23
  logLevel: 'silent',
24
24
  plugins: [topLevelAwait()],
25
25
  build: {
26
- sourcemap: 'inline',
27
- commonjsOptions: {
28
- include: [/node_modules/],
29
- }
26
+ sourcemap: 'inline'
30
27
  },
31
28
  optimizeDeps: {
32
29
  include: ['expect', 'jest-matcher-utils'],
@@ -1 +1 @@
1
- {"version":3,"file":"testrunner.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/testrunner.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAmClC,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,GAAG,MAAM,EAAE,CAgI9E"}
1
+ {"version":3,"file":"testrunner.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/testrunner.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AA2ClC,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,GAAG,MAAM,EAAE,CAgI9E"}
@@ -15,12 +15,19 @@ const protocolCommandList = Object.values(commands).map((endpoint) => Object.val
15
15
  const WDIO_PACKAGES = ['webdriverio', 'expect-webdriverio'];
16
16
  const virtualModuleId = 'virtual:wdio';
17
17
  const resolvedVirtualModuleId = '\0' + virtualModuleId;
18
- const MODULES_TO_MOCK = ['import-meta-resolve', 'puppeteer-core', 'archiver', 'glob', 'devtools', 'ws'];
19
- const FETCH_FROM_ESM = ['mocha'];
18
+ const MODULES_TO_MOCK = [
19
+ 'import-meta-resolve', 'puppeteer-core', 'archiver', 'glob', 'devtools', 'ws'
20
+ ];
20
21
  const POLYFILLS = [
21
22
  ...builtinModules,
22
23
  ...builtinModules.map((m) => `node:${m}`)
23
24
  ].map((m) => m.replace('/promises', ''));
25
+ const FETCH_FROM_ESM = [
26
+ 'serialize-error', 'minimatch', 'css-shorthand-properties', 'lodash.merge', 'lodash.zip',
27
+ 'lodash.clonedeep', 'lodash.pickby', 'lodash.flattendeep', 'aria-query', 'grapheme-splitter',
28
+ 'css-value', 'rgb2hex', 'p-iteration', 'fast-safe-stringify', 'deepmerge-ts',
29
+ 'mocha'
30
+ ];
24
31
  export function testrunner(options) {
25
32
  const automationProtocolPath = `/@fs${url.pathToFileURL(path.resolve(__dirname, '..', '..', 'browser', 'driver.js')).pathname}`;
26
33
  const mockModulePath = path.resolve(__dirname, '..', '..', 'browser', 'mock.js');
@@ -1,6 +1,5 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  import type { Environment, FrameworkPreset } from '../types.js';
3
- export declare function getTemplate(options: WebdriverIO.BrowserRunnerOptions, env: Environment, spec: string, processEnv?: NodeJS.ProcessEnv): Promise<string>;
2
+ export declare function getTemplate(options: WebdriverIO.BrowserRunnerOptions, env: Environment, spec: string): Promise<string>;
4
3
  export declare function userfriendlyImport(preset: FrameworkPreset, pkg?: string): Promise<any>;
5
4
  export declare function normalizeId(id: string, base?: string): string;
6
5
  export declare function getErrorTemplate(filename: string, error: Error): string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/vite/utils.ts"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE/D,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,oBAAc,mBA8EpI;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,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":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE/D,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,mBAyE1G;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,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,UAU9D"}
@@ -2,7 +2,7 @@ import fs from 'node:fs/promises';
2
2
  import url from 'node:url';
3
3
  import path from 'node:path';
4
4
  import { resolve } from 'import-meta-resolve';
5
- export async function getTemplate(options, env, spec, processEnv = process.env) {
5
+ export async function getTemplate(options, env, spec) {
6
6
  const root = options.rootDir || process.cwd();
7
7
  const rootFileUrl = url.pathToFileURL(root).href;
8
8
  let vueDeps = '';
@@ -37,11 +37,6 @@ export async function getTemplate(options, env, spec, processEnv = process.env)
37
37
  <title>WebdriverIO Browser Test</title>
38
38
  <link rel="icon" type="image/x-icon" href="https://webdriver.io/img/favicon.png">
39
39
  <link rel="stylesheet" href="${mochaCSSHref}">
40
- <script type="module">
41
- window.process = {
42
- env: ${JSON.stringify(processEnv)}
43
- }
44
- </script>
45
40
  <script type="module">
46
41
  /**
47
42
  * Inject environment variables
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browser-runner",
3
- "version": "8.3.6",
3
+ "version": "8.3.7",
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",
@@ -67,5 +67,5 @@
67
67
  "@types/ws": "^8.5.4",
68
68
  "@wdio/runner": "8.3.5"
69
69
  },
70
- "gitHead": "6d6ca2b0b1c7accefb78b820321573632153cc66"
70
+ "gitHead": "6882faeb808cdc1cdcd576d8cbd5bf6a266d6a4a"
71
71
  }