feat(版本详情): 接入计划时间与日期选择

This commit is contained in:
Script Generator
2026-06-29 14:18:58 +08:00
parent dde11c0899
commit 0f64a17d44
20 changed files with 601 additions and 12 deletions

25
apps/web/lib/bug.test.ts Normal file
View File

@@ -0,0 +1,25 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import type { Bug } from './bug';
test('bug supports planned fix time', () => {
const bug: Bug = {
id: 'bug-1',
bugNo: 'BUG-001',
versionId: 'version-1',
testCaseId: 'tc-1',
title: 'cannot save',
description: 'save button has no response',
severity: 'major',
priority: 'P1',
reportedBy: 'QA',
assigneeId: 'Dev',
status: 'open',
plannedFixAt: '2026-07-01T18:00:00.000Z',
createdAt: '2026-06-25T00:00:00.000Z',
updatedAt: '2026-06-25T00:00:00.000Z',
};
assert.equal(bug.plannedFixAt, '2026-07-01T18:00:00.000Z');
});