Skip to content

Releases: webdriverio-community/wdio-electron-service

Release 7.0.0

21 Aug 19:34
Compare
Choose a tag to compare

New:

  • Complete restructure of the repo, now using Turborepo (#443, #623, #645)
  • Works with WDIO v9 (#623, #666, #729)
  • Node 16 support dropped (#666)
  • "No Binary" mode for testing an app without having to build it using e.g. Electron Forge or electron-builder (#704)

Fixed:

  • Windows CI timeouts with Electron 30 (#578)
  • Executable name on Forge builds doesn't take account of packagerConfig (#621)
  • Multiple build tools present in a project produces errors (#622)
  • E2E debug is too verbose (#634)
  • Windows CI errors with latest electron-builder (#599)
  • Forge Mac-universal E2E errors (#576)

Docs:

  • Updated for "No Binary" mode
  • Updated for WDIO v9
  • Minimum required Electron version to avoid having to self-configure chromedriver moved to main README

Developer:

  • ts-node removed in favour of tsx (#666)
  • Now using native fetch (#666)
  • Updated dependencies

Full Changelog

Release 6.6.1

21 May 10:27
Compare
Choose a tag to compare

Fixed:

  • @electron/packager import error in electron-builder projects (#578)

Developer:

  • Updated dependencies

Full Changelog

Release 6.6.0

17 May 17:17
Compare
Choose a tag to compare

New:

  • Support for mac-universal builds using Forge and electron-builder (#575)
  • Support for Forge custom output directories - the service will now respect the output directory you specify in forge.config.js (c6bf002)

Documentation:

  • Added debugging information and example to Common Issues page (#577)

Developer:

  • Standardised PNPM version across CI and repo (#573)
  • Updated dependencies

Full Changelog

Release 6.5.0

02 May 18:04
Compare
Choose a tag to compare

New:

  • Standalone Mode - the ability to use the service in a regular Node.js script, without the WDIO testrunner (#521)

Documentation:

  • Standalone mode page (1843726, 5a2903a)
  • Improved chromedriver configuration page - detailing user management for older Electron versions (#511)
  • Standardised code sample filename formatting (#512)

Developer:

  • CI: Dependabot ignores electron-builder and all major updates (d422505)
  • CI: Updated node (dba31ee), pnpm (4538597), and actions (69fe5aa)
  • Removed bundling for main process in ESM examples (af18718)
  • Updated dependencies

Full Changelog

Release 6.4.1

08 Apr 15:11
Compare
Choose a tag to compare

Fixed:

  • Preload guard causes errors in Vite-based projects (78b6d83)

Documentation:

  • More specific security instructions around API access (79aac35)
  • Improved text around sandboxing and non-bundled preload scripts (79aac35)
  • Improved code samples (486a916)
  • Updated CD user management section, specfically for older Electron versions (#511)

Developer:

  • CI: fixed dry run in release script (#475)
  • Updated dependencies

Full Changelog

Release 6.4.0

12 Mar 10:26
Compare
Choose a tag to compare

New:

  • isMockFunction utility for determining whether a given parameter is an Electron mock (#450)
  • Types for mock object properties - calls, lastCall, results, invocationCallOrder (#442)

Fixed:

  • before hook throws error when run without IPC bridge (#462)

Documentation:

  • Added docs for isMockFunction utility (6dc6251)
  • Added docs for mock object properties (1787c73)

Developer:

  • CI: Add expense contribution workflow (#445, #451)
  • CI: Release workflow improvements (#444, #460)
  • Test: Add E2Es for mock object properties (cf1a71f)
  • Test: Speed up onPrepare units by mocking Electron release response (#448)
  • Scripts updated for husky v9 (#447)
  • Updated Electron to v29 (#441)
  • Updated dependencies

Full Changelog

Release 6.3.2

25 Feb 01:00
Compare
Choose a tag to compare

Fixed:

  • Direct eval used in mocking functions (#427)

Developer:

  • Updated dependencies

Full Changelog

Release 6.3.1

19 Feb 17:29
Compare
Choose a tag to compare

Fixed:

  • CJS output depends on @vitest/spy which is ESM only (#421)
  • mockRestore should explicitly clear mocks (df0ecad)

Developer:

  • Test: removed workaround for expect-webdriver E2E failures (100d27c)
  • Test: removed bundling from example-cjs as it was masking errors (e0ad6a3)
  • CJS symlinks replaced with copy at build time (bdc24e7, f784da0, 1515e80)
  • Updated dependencies

Full Changelog

Release 6.3.0

09 Feb 23:55
Compare
Choose a tag to compare

New:

  • Added remaining mock object functions - withImplementation, getMockImplementation, mockReturnThis, mockName, getMockName, mockReturnThis (#410)

Fixed:

  • fast-copy error when running wdio-electron-service-example E2Es (8ab64ba)

Documentation:

  • Added docs for new mock object functions (cd9fdd5)

Developer:

  • Test: Added workaround for expect-webdriver E2E failures (6a0b041)
  • Test: Increased unit coverage of mocking functionality (debdef9)
  • Updated dependencies

Full Changelog

Release 6.2.0

16 Jan 16:15
Compare
Choose a tag to compare

New:

  • Added mock promise methods - mockResolvedValue, mockResolvedValueOnce, mockRejectedValue, mockRejectedValueOnce (#391)
  • Improved mock performance by restricting mock updates to happen after non-internal execute commands (#393)

Documentation:

  • Updated documentation for new mock promise methods (8959c9b)

Developer:

  • Improved unit test coverage (#344)
  • Updated dependencies

Full Changelog