test: 固定本地时间标签的测试时区

This commit is contained in:
Wxw-Gu
2026-09-14 17:17:23 +08:00
parent 29c1166eca
commit 4191d4d5f5
@@ -1,5 +1,8 @@
import { describe, expect, it, vi, beforeEach } from 'vitest' import { describe, expect, it, vi, beforeEach } from 'vitest'
// Keep local-time label assertions deterministic; production follows the host timezone.
process.env.TZ = 'Asia/Shanghai'
const fixture = vi.hoisted(() => ({ const fixture = vi.hoisted(() => ({
contacts: [ contacts: [
{ m_nsUsrName: 'wxid-bobo', m_nsNickName: 'BOBO', md5: 'md5-bobo', type: 'user' as const }, { m_nsUsrName: 'wxid-bobo', m_nsNickName: 'BOBO', md5: 'md5-bobo', type: 'user' as const },