Skip to content

feat(api): add getSeed method#8592

Merged
sheremet-va merged 1 commit into
mainfrom
feat/add-seed-method
Sep 18, 2025
Merged

feat(api): add getSeed method#8592
sheremet-va merged 1 commit into
mainfrom
feat/add-seed-method

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

Description

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@netlify

netlify Bot commented Sep 18, 2025

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit d08093e
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/68cc0e33d1c61000087a1ef9
😎 Deploy Preview https://deploy-preview-8592--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va
sheremet-va merged commit 438c44e into main Sep 18, 2025
11 of 14 checks passed
@sheremet-va
sheremet-va deleted the feat/add-seed-method branch September 18, 2025 17:14
hi-ogawa added a commit to hi-ogawa/vitest that referenced this pull request Jun 25, 2026
Keep `sequence.seed` resolved unconditionally at the root, but restore
`getSeed(): number | null` returning null unless files or tests run at random
(in the root config or any project). This keeps the documented "seed iff
random" semantics (vitest-dev#8592, vitest-dev#9576) while sharing one seed across projects. The
logger banner now reuses `getSeed()` instead of duplicating the check.

Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
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.

1 participant