docs: clarify setup lifecycle runs per test file#16213
Conversation
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
babel-jest
babel-plugin-jest-hoist
babel-preset-jest
create-jest
@jest/diff-sequences
expect
@jest/expect-utils
jest
jest-changed-files
jest-circus
jest-cli
jest-config
@jest/console
@jest/core
@jest/create-cache-key-function
jest-diff
jest-docblock
jest-each
@jest/environment
jest-environment-jsdom
@jest/environment-jsdom-abstract
jest-environment-node
@jest/expect
@jest/fake-timers
@jest/get-type
@jest/globals
jest-haste-map
jest-jasmine2
jest-leak-detector
jest-matcher-utils
jest-message-util
jest-mock
@jest/pattern
jest-phabricator
jest-regex-util
@jest/reporters
jest-resolve
jest-resolve-dependencies
jest-runner
jest-runtime
@jest/schemas
jest-snapshot
@jest/snapshot-utils
@jest/source-map
@jest/test-result
@jest/test-sequencer
@jest/transform
@jest/types
jest-util
jest-validate
jest-watcher
jest-worker
pretty-format
commit: |
|
The failing macOS jobs look unrelated to this docs-only change. The failed jobs ( I don't see anything in this branch that maps to those crashes; this looks like a macOS runner/Node crash and should be safe to rerun. |
Summary
Fixes #9267.
The setup lifecycle docs still used ambiguous wording in a few places:
setupFilesAfterEnvin the CLI page said it runs before each test,setupFilessaid every test gets its own environment, and global setup/teardown referred to test suites. This updates those spots to use the clearertest fileterminology recommended in the issue discussion.Test plan
corepack yarn prettier --check docs\CLI.md docs\Configuration.mdcorepack yarn eslint docs\CLI.md docs\Configuration.mdgit diff --check