webdriverio/__mocks__/expect-webdriverio.ts
JustasM 10cddfd73c
feat(wdio-runner): automatically include SoftAssertionService (#14546)
* feat: automatically include SoftAssertionService in the core

* fix(docs): clarify default inclusion of SoftAssertionService in documentation

* feat: add autoAssertOnTestEnd option to control soft assertion behavior

* Update website/docs/Configuration.md

* Update website/docs/Assertion.md

* refactor(docs): reorganize Soft Assertions section for clarity

* feat: add SoftAssertionService to expect-webdriverio mock

* fix(tests): adjust snapshot formatting for consistency in React component tests

---------

Co-authored-by: Christian Bromann <git@bromann.dev>
2025-06-11 15:16:37 -07:00

7 lines
251 B
TypeScript

import { vi } from 'vitest'
process.env.WDIO_ASSERTION_LIB_ACTIVATED = '1'
const setOptions = vi.fn()
const expect = vi.fn()
const matchers = new Map()
const SoftAssertionService = vi.fn()
export { setOptions, expect, matchers, SoftAssertionService }