Initial Commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Integration-test wiring for storage-s3.
|
||||
*
|
||||
* - `globalSetup` — absolute path to `./global-setup.ts`. Vitest loads this
|
||||
* file as the global-setup module; it imports the bun-napi-shim before
|
||||
* testcontainers loads, then registers the Garage fixture via the public
|
||||
* `createIntegrationSetup()` factory.
|
||||
* - `inject` — typed accessor for the published fixture configs. Re-exported
|
||||
* from `./global-setup.js` (where the typed registry was constructed).
|
||||
*/
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
export { inject } from "./global-setup.js";
|
||||
|
||||
// Vitest's `globalSetup` MUST point at storage-s3's own `global-setup.ts`
|
||||
// (which loads `bun-napi-shim` first), NOT the bare path returned by
|
||||
// `createIntegrationSetup` — the testing-integration core global-setup has
|
||||
// no shim and would crash Bun before testcontainers starts.
|
||||
export const globalSetup = fileURLToPath(
|
||||
new URL("./global-setup.ts", import.meta.url)
|
||||
);
|
||||
Reference in New Issue
Block a user