refactor: test run case status messages duplication

This commit is contained in:
Takeshi Kimata
2024-07-21 15:30:04 +09:00
parent f797ae2581
commit 1da19ed43c
12 changed files with 91 additions and 69 deletions

View File

@@ -0,0 +1,18 @@
// The status of each test case in test run
type TestRunCaseStatusUidType = 'untested' | 'passed' | 'failed' | 'retest' | 'skipped';
type TestRunCaseStatusType = {
uid: TestRunCaseStatusUidType;
color: string;
chartColor: string;
};
type TestRunCaseStatusMessages = {
untested: string;
passed: string;
failed: string;
retest: string;
skipped: string;
};
export type { TestRunCaseStatusUidType, TestRunCaseStatusType, TestRunCaseStatusMessages };

View File

@@ -1,17 +0,0 @@
type TestStatusUidType = 'untested' | 'passed' | 'failed' | 'retest' | 'skipped';
type TestStatusType = {
uid: TestStatusUidType;
color: string;
chartColor: string;
};
type TestStatusMessages = {
untested: string;
passed: string;
failed: string;
retest: string;
skipped: string;
};
export type { TestStatusUidType, TestStatusType, TestStatusMessages };