@wdio/browser-runner 8.13.9 → 8.13.11

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":"nuxt.d.ts","sourceRoot":"","sources":["../../../src/vite/frameworks/nuxt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAK1C,OAAO,CAAC,MAAM,CAAC;IAEX,IAAI,gBAAgB,EAAE,QAAQ,CAAA;CACjC;AAID,wBAAsB,eAAe,CAAE,OAAO,EAAE,MAAM,oBAOrD;AAED,wBAAsB,eAAe,CAAE,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,iBAkC3G"}
1
+ {"version":3,"file":"nuxt.d.ts","sourceRoot":"","sources":["../../../src/vite/frameworks/nuxt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAK1C,OAAO,CAAC,MAAM,CAAC;IAEX,IAAI,gBAAgB,EAAE,QAAQ,CAAA;CACjC;AAID,wBAAsB,eAAe,CAAE,OAAO,EAAE,MAAM,oBAOrD;AAED,wBAAsB,eAAe,CAAE,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,iBA0C3G"}
@@ -29,7 +29,13 @@ export async function optimizeForNuxt(options, config) {
29
29
  }
30
30
  }
31
31
  const composableImports = await scanDirExports(composablesDirs);
32
- options.viteConfig = options.viteConfig || {};
32
+ options.viteConfig = (options.viteConfig || {});
33
+ /**
34
+ * propagate "alias" config
35
+ */
36
+ options.viteConfig.resolve = Object.assign(options.viteConfig.resolve || {}, {
37
+ alias: nuxtOptions.alias || {}
38
+ });
33
39
  const viteConfig = (options.viteConfig || {});
34
40
  if (!Array.isArray(viteConfig.plugins)) {
35
41
  viteConfig.plugins = [];
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAGpC,OAAO,KAAK,EAAiB,YAAY,EAAa,MAAM,MAAM,CAAA;AAGlE,OAAO,KAAK,EAAY,OAAO,EAAE,MAAM,aAAa,CAAA;AAQpD,OAAO,KAAK,EACM,gBAAgB,EAEjC,MAAM,YAAY,CAAA;AAgBnB,qBAAa,UAAW,SAAQ,YAAY;;IAUxC,IAAI,YAAY,gCAEf;IAED,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU;IA2B5E,KAAK;IAsDL,KAAK;IA2IX,OAAO,CAAC,cAAc;IAetB,WAAW,CAAE,MAAM,EAAE,gBAAgB;CAUxC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAGpC,OAAO,KAAK,EAAiB,YAAY,EAAa,MAAM,MAAM,CAAA;AAGlE,OAAO,KAAK,EAAY,OAAO,EAAE,MAAM,aAAa,CAAA;AAQpD,OAAO,KAAK,EACM,gBAAgB,EAEjC,MAAM,YAAY,CAAA;AAgBnB,qBAAa,UAAW,SAAQ,YAAY;;IAUxC,IAAI,YAAY,gCAEf;IAED,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU;IA2B5E,KAAK;IAuDL,KAAK;IA2IX,OAAO,CAAC,cAAc;IAetB,WAAW,CAAE,MAAM,EAAE,gBAAgB;CAUxC"}
@@ -88,12 +88,13 @@ export class ViteServer extends EventEmitter {
88
88
  * merge custom `viteConfig` last into the object
89
89
  */
90
90
  if (this.#options.viteConfig) {
91
- const configToMerge = typeof this.#options.viteConfig === 'string'
91
+ const { plugins, ...configToMerge } = typeof this.#options.viteConfig === 'string'
92
92
  ? (await import(path.resolve(this.#config.rootDir || process.cwd(), this.#options.viteConfig))).default
93
93
  : typeof this.#options.viteConfig === 'function'
94
94
  ? await this.#options.viteConfig(DEFAULT_CONFIG_ENV)
95
95
  : this.#options.viteConfig;
96
96
  this.#viteConfig = deepmerge(this.#viteConfig, configToMerge);
97
+ this.#viteConfig.plugins = [...(plugins || []), ...this.#viteConfig.plugins];
97
98
  }
98
99
  /**
99
100
  * initialize Socket server on top of vite server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browser-runner",
3
- "version": "8.13.9",
3
+ "version": "8.13.11",
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,8 +35,8 @@
35
35
  "@types/istanbul-lib-source-maps": "^4.0.1",
36
36
  "@types/node": "^20.1.0",
37
37
  "@vitest/spy": "^0.33.0",
38
- "@wdio/globals": "8.13.4",
39
- "@wdio/local-runner": "8.13.4",
38
+ "@wdio/globals": "8.13.10",
39
+ "@wdio/local-runner": "8.13.10",
40
40
  "@wdio/logger": "8.11.0",
41
41
  "@wdio/mocha-framework": "8.12.1",
42
42
  "@wdio/protocols": "8.11.0",
@@ -56,11 +56,11 @@
56
56
  "recast": "^0.23.2",
57
57
  "serialize-error": "^11.0.0",
58
58
  "source-map-support": "^0.5.21",
59
- "vite": "~4.2.0",
60
- "vite-plugin-istanbul": "^4.0.1",
59
+ "vite": "~4.4.6",
60
+ "vite-plugin-istanbul": "^5.0.0",
61
61
  "vite-plugin-top-level-await": "^1.3.0",
62
62
  "webdriver": "8.13.1",
63
- "webdriverio": "8.13.4",
63
+ "webdriverio": "8.13.10",
64
64
  "ws": "^8.13.0"
65
65
  },
66
66
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@types/ws": "^8.5.4",
74
- "@wdio/runner": "8.13.4"
74
+ "@wdio/runner": "8.13.10"
75
75
  },
76
- "gitHead": "1785f113f436eba9ae73b25c5d26389769f9d035"
76
+ "gitHead": "fb3bbf7f6d1cba9a5918f9910c67b8d34fb13bc8"
77
77
  }