1.4 KiB
1.4 KiB
Tasks: testing-integration-build-fix
1. Build config
- 1.1 Add
src/setup/global-setup.tsas a secondlib.entryinpackages/dev/testing-integration/vite.config.ts(already present — confirmentryFileNames: "[name].js"). - 1.2 Replace
new URL("../setup/global-setup.js", import.meta.url).pathnameinsrc/internal/create-integration-setup-internal.tswith a Vite-safe equivalent (Option A:path.join(fileURLToPath(import.meta.url), "..", "..", "setup", "global-setup.js")). - 1.3 Verify
dist/internal/create-integration-setup-internal.jsno longer containsdata:URLs after build.
2. Regression test
- 2.1 Add
tests/dist-asserts.test.ts: build, then loaddist/index.js, callcreateIntegrationSetup({ x: stubFixture }), assertexistsSync(globalSetup) === true. - 2.2 Wire it into the
testscript (it must exercise the built output, so the test runs afterbuild).
3. Downstream sweep
- 3.1 Confirm
testing-integration-redis|-postgres|-mailpit|-typesense|-surrealdb|-garage-s3|-step-cahave no broken consumers (currently none). - 3.2 Migrate
packages/storage/storage-s3/tests/integration/setup.tsfrom the hand-rolledTestEnvironmentdriver back tocreateIntegrationSetup.
4. Verify
- 4.1
bunx turbo lint typecheck test --filter=@suaveplan/testing-integrationgreen. - 4.2
bun scripts/openspec-conformance.ts @suaveplan/testing-integrationPASS.