fix(next-auth): repair red v4 CI (lint + pre-existing test drift) (#13447)
* test(next-auth): use Reflect.deleteProperty to satisfy no-dynamic-delete lint
* test(next-auth): repair v4 test suite (dependency drift)
The v4 test suite had been red since ~Oct 2025 due to dependency drift.
Three independent root causes, all unrelated to test logic:
- Pin headers-polyfill to 3.0.4 via pnpm override. @mswjs/interceptors@0.16.6
does `require("headers-polyfill/lib")`, but headers-polyfill >=3.1.x ships an
`exports` map that blocks the deep import, breaking all 7 client suites.
- Compile the core jest project's JSX with Preact's automatic runtime
(swc.preact.config.js). The default pages are Preact components rendered by
`preact-render-to-string`; the React runtime emitted React elements that
render to an empty body, failing assert.test.ts.
- Mock `../src/core` instead of `jest.spyOn(core, "AuthHandler")` in
getServerSession.test.ts. SWC compiles named exports to non-configurable
getters, so spyOn threw "Cannot redefine property".
Also update the stale "Send e-mail to first address only" email test to assert
that an address list with multiple `@` symbols is now rejected, matching the
hardened normalizer.