Skip to content

feat: add fixture lifecycle hooks - #15

Open
GiHoon1123 wants to merge 1 commit into
toss:mainfrom
GiHoon1123:fix/fixture-lifecycle-hooks
Open

GiHoon1123 wants to merge 1 commit into
toss:mainfrom
GiHoon1123:fix/fixture-lifecycle-hooks

Conversation

@GiHoon1123

Copy link
Copy Markdown

Closes #14

Add optional setup and teardown hooks to Fixture.create and Fixture.fromDirectory.

  • run setup after files are written or copied
  • run teardown before the fixture directory is removed
  • keep cleanup running when a hook fails and preserve multiple errors
  • keep cleanup idempotent for repeated, concurrent, and re-entrant calls
  • document the new options in English and Korean

Tests: yarn test run, yarn typecheck, yarn lint, yarn format:check, yarn build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add lifecycle hooks to Fixture

1 participant