Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/test/lib/utils/auth_forms.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,8 @@ describe('auth_forms', () => {
});

test('expect to use fallback ID generation when crypto.randomUUID is unavailable', async () => {
// Mock crypto.randomUUID to be undefined (preserve other properties)
const prevCrypto = globalThis.crypto;
vi.stubGlobal('crypto', { ...(prevCrypto ?? {}), randomUUID: undefined });
// Drop randomUUID to force the timestamp-based fallback ID
vi.stubGlobal('crypto', { randomUUID: undefined });
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

vi.mocked(superValidate).mockRejectedValueOnce(new Error('Primary strategy failed'));

Expand Down
Loading