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

This commit is contained in:
2026-06-16 00:15:07 -06:00
parent e6e2d0c5cf
commit c6b41f992a
5 changed files with 278 additions and 248 deletions

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}$/)
})
})