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 — Docs - Global setup · Issue #1244 · testcontainers/testcontainers-node

Docs - Global setup #1244

New issue
Copy link
New issue
Copy link
Closed
#1245
Closed
Docs - Global setup#1244
#1245
Copy link
Labels
documentationChanges to documentation

Description

@howlettt
howlettt
opened on Feb 22, 2026
Issue body actions

The global setup Vitest example seems to be messed up. The setup.js file contents seems to be for a globalSetup file but it's passed as setupFiles in vite.config.js.

Possible fixes:

  • Pass setup.js as globalSetup instead
    • Problem: globalThis then doesn't work in tests since they have different global scopes
  • Change setup.js to work as a setupFiles
    • Problem: setupFiles are run before each test file
  • Pass data from globalSetup using project.provide docs
    • Problem: only serializable data can be passed

Activity

  1. cristianrgreco commented on Feb 22, 2026

    @cristianrgreco
    cristianrgreco
    on Feb 22, 2026
    Collaborator
    More actions

    @howlettt thanks for raising. I've raised a PR for option 3, lemme know what you think.

  2. cristianrgreco
    added
    documentationChanges to documentation
    on Feb 22, 2026
  3. cristianrgreco
    closed this as completedin #1245on Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationChanges to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.