Skip to content

OBSIDIAN_JEST_SETUP_FILES_AFTER_ENV

The per-test setup files, in the order the vitest configuration loads them: the mocks’ globals and mocked app first, then this package’s reset of the shared state before each test.

They go in setupFilesAfterEnv, not setupFiles, because this package’s setup registers beforeEach and afterEach hooks, which exist only once the test framework is installed.

Import:

import { OBSIDIAN_JEST_SETUP_FILES_AFTER_ENV } from '@mnaoumov/obsidian-dev-toolkit/test-runners/jest-config';

Signature:

const OBSIDIAN_JEST_SETUP_FILES_AFTER_ENV: readonly string[]

Type: readonly string[]


Links to this page: