Skip to content

chore(deps): update module github.com/onsi/ginkgo/v2 to v2.25.0#383

Merged
renovate[bot] merged 1 commit intomasterfrom
renovate/github.com-onsi-ginkgo-v2-2.x
Aug 24, 2025
Merged

chore(deps): update module github.com/onsi/ginkgo/v2 to v2.25.0#383
renovate[bot] merged 1 commit intomasterfrom
renovate/github.com-onsi-ginkgo-v2-2.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 24, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/onsi/ginkgo/v2 v2.24.0 -> v2.25.0 age adoption passing confidence

Release Notes

onsi/ginkgo (github.com/onsi/ginkgo/v2)

v2.25.0

Compare Source

2.25.0

AroundNode

This release introduces a new decorator to support more complex spec setup usecases.

AroundNode registers a function that runs before each individual node. This is considered a more advanced decorator.

Please read the docs for more information and some examples.

Allowed signatures:

  • AroundNode(func()) - func will be called before the node is run.
  • AroundNode(func(ctx context.Context) context.Context) - func can wrap the passed in context and return a new one which will be passed on to the node.
  • AroundNode(func(ctx context.Context, body func(ctx context.Context))) - ctx is the context for the node and body is a function that must be called to run the node. This gives you complete control over what runs before and after the node.

Multiple AroundNode decorators can be applied to a single node and they will run in the order they are applied.

Unlike setup nodes like BeforeEach and DeferCleanup, AroundNode is guaranteed to run in the same goroutine as the decorated node. This is necessary when working with lower-level libraries that must run on a single thread (you can call runtime.LockOSThread() in the AroundNode to ensure that the node runs on a single thread).

Since AroundNode allows you to modify the context you can also use AroundNode to implement shared setup that attaches values to the context.

If applied to a container, AroundNode will run before every node in the container. Including setup nodes like BeforeEach and DeferCleanup.

AroundNode can also be applied to RunSpecs to run before every node in the suite. This opens up new mechanisms for instrumenting individual nodes across an entire suite.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner August 24, 2025 04:22
@renovate renovate bot enabled auto-merge (squash) August 24, 2025 04:22
@renovate renovate bot merged commit 071183c into master Aug 24, 2025
22 checks passed
@renovate renovate bot deleted the renovate/github.com-onsi-ginkgo-v2-2.x branch August 24, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants