GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix Vitest global setup quickstart for Redis by cristianrgreco · Pull Request #1245 · testcontainers/testcontainers-node

Conversation

@cristianrgreco

@cristianrgreco cristianrgreco commented Feb 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fix the Vitest quickstart example in docs/quickstart/global-setup.md to use globalSetup instead of setupFiles
  • use RedisContainer from @testcontainers/redis and provide a serializable redisUrl from global setup
  • update the test snippet to consume that value via inject("redisUrl") and manage its own Redis client lifecycle
  • clarify that globalSetup runs in a different global scope than test files

Verification commands run

  • npm run format
  • npm run lint
  • npm run test -- tmp-verify-1244/redis-global-setup.test.js --config tmp-verify-1244/vitest.config.js --reporter verbose (targeted docs-snippet verification with temporary fixture files)

Test results summary

  • all listed commands passed
  • targeted Vitest verification passed: 1 test file, 1 test passed

Non-breaking evidence

  • docs-only change; no runtime code, API exports, or package behavior changed

Closes #1244

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cristianrgreco
Fix Vitest global setup quickstart for Redis module
5555115
@cristianrgreco cristianrgreco added patch Backward compatible bug fix documentation Changes to documentation labels Feb 22, 2026
@netlify

netlify Bot commented Feb 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 5555115
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-node/deploys/699ae407e8cee300086777f0
😎 Deploy Preview https://deploy-preview-1245--testcontainers-node.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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@howlettt

howlettt commented Feb 22, 2026

Copy link
Copy Markdown

Looks good to me 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cristianrgreco
cristianrgreco merged commit 2135dd3 into main Feb 22, 2026
6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@cristianrgreco
cristianrgreco deleted the codex/issue-1244-global-setup-docs branch February 22, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

documentation Changes to documentation patch Backward compatible bug fix

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Docs - Global setup

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@cristianrgreco @howlettt
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.