test(api): stop tests leaking module mocks and env into later files #14
Reference in New Issue
Block a user
Delete Branch "fix/ci-test-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI failed on a different set of tests each run because bun runs every test
file in one process and the file order differs between machines:
loaded after it lost awsClients, lambda and defaultAccountId (API Gateway,
SES)
stores the string "undefined" (runtime diagnostics)
slower runners; the OIDC cleanup test cached a discovery document without
userinfo_endpoint for the shared issuer
Checked with 20 runs under bun test --randomize.