mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-10-03 18:33:14 +08:00
test: 固定本地时间标签的测试时区
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
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(() => ({
|
||||
contacts: [
|
||||
{ m_nsUsrName: 'wxid-bobo', m_nsNickName: 'BOBO', md5: 'md5-bobo', type: 'user' as const },
|
||||
|
||||
Reference in New Issue
Block a user