chore: add tsconfig.server.json for bun types and install @types/bun

This commit is contained in:
xuyue committed 2026-06-16 00:15:07 -06:00
1 parent e6e2d0c5cf
commit c6b41f992a
5 files changed
+278 -248

No files matched your search

+2 -1
View File
@@ -33,8 +33,9 @@ describe('auth utilities', () => {
expect(payload).toBeNull()
})
it('hashToken is deterministic', () => {
it('hashToken is deterministic and returns 64-char hex', () => {
expect(hashToken('abc')).toBe(hashToken('abc'))
expect(hashToken('abc')).not.toBe(hashToken('xyz'))
expect(hashToken('abc')).toMatch(/^[0-9a-f]{64}$/)
})
})