Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/**
* Vitest global-setup module — drives the Garage S3 fixture for storage-s3
* integration tests.
*
* Uses the public `createIntegrationSetup()` factory from
* `@suaveplan/testing-integration`. The Bun-NAPI shim that lets testcontainers
* load under Bun is auto-installed by the re-exported
* `@suaveplan/testing-integration/setup/global-setup` module — no per-consumer
* wiring is needed.
*/
import { createIntegrationSetup } from "@suaveplan/testing-integration";
import { GarageS3Fixture } from "@suaveplan/testing-integration-garage-s3";
// Default `ghcr.io/deuxfleurs/garage:v2.0.0` returns 403 for unauthenticated
// pulls — mirror to Docker Hub.
export const fixtures = {
"garage-s3": new GarageS3Fixture({ image: "dxflrs/garage:v2.0.0" }),
};
export const { inject } = createIntegrationSetup(fixtures);
// Re-export Vitest's setup/teardown contract from testing-integration's
// public global-setup module. Vitest discovers them by name when this file
// is wired as `test.globalSetup` in `vitest.integration.config.ts`.
export {
setup,
teardown,
} from "@suaveplan/testing-integration/setup/global-setup";