Picture this: Your tests were working perfectly fine. Life was good. Then you innocently add ONE import from cloudflare:test
to your setup file, and suddenly ALL YOUR MOCKS ARE LYING TO YOU. They exist, but they do nothing. They're like ghost mocks, haunting your codebase with their useless presence.
// The import that ruined everything
import { env, applyD1Migrations } from "cloudflare:test";