test_helpers.ts

Declarations
#

Vitest's expects does not narrow types, this does for falsy values.

@see https://github.com/vitest-dev/vitest/issues/2883

4 declarations

view source

expect_defined
#

expect_nonnullish
#

expect_ok
#

monkeypatch_zzz_for_tests
#

test_helpers.ts view source

<T extends Frontend>(app: T): T

Applies testing-specific modifications to a Zzz instance.

app

type T

returns

T