Skip to content

feat: increase milestones values precision #106

feat: increase milestones values precision

feat: increase milestones values precision #106

Triggered via push September 24, 2024 13:12
Status Failure
Total duration 44s
Artifacts

test.yml

on: push
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

12 errors
src/components/TimeMilestones/TimeMilestones.test.tsx > TimeMilestones > renders correctly: src/components/TimeMilestones/TimeMilestones.test.tsx#L43
Error: Snapshot `TimeMilestones > renders correctly 1` mismatched - Expected + Received @@ -16,11 +16,11 @@ <div aria-label="of day" > of day - 0.67 + 0.6704 </div> <div aria-label="of week" > of week @@ -30,17 +30,17 @@ <div aria-label="of month" > of month - 0.15 + 0.1506 </div> <div aria-label="of year" > of year - 0.17 + 0.1744 </div> </div> </div> ❯ src/components/TimeMilestones/TimeMilestones.test.tsx:43:15
src/components/TimeMilestones/utils.test.ts > getDayMilestone > at 23:59 equals to 0.99: src/components/TimeMilestones/utils.test.ts#L16
AssertionError: expected 0.9993 to be 0.99 // Object.is equality - Expected + Received - 0.99 + 0.9993 ❯ src/components/TimeMilestones/utils.test.ts:16:46
src/components/TimeMilestones/utils.test.ts > getMonthMilestone > on 30 at 23:59 equals 0.99: src/components/TimeMilestones/utils.test.ts#L36
AssertionError: expected 0.9999 to be 0.99 // Object.is equality - Expected + Received - 0.99 + 0.9999 ❯ src/components/TimeMilestones/utils.test.ts:36:48
src/components/TimeMilestones/utils.test.ts > getWeekMilestone > on 4 day at 13:00 equals 0.5: src/components/TimeMilestones/utils.test.ts#L56
AssertionError: expected 0.5059 to be 0.5 // Object.is equality - Expected + Received - 0.5 + 0.5059 ❯ src/components/TimeMilestones/utils.test.ts:56:47
src/components/TimeMilestones/utils.test.ts > getWeekMilestone > on 7 day at 23:59 equals 0.99: src/components/TimeMilestones/utils.test.ts#L56
AssertionError: expected 0.9999 to be 0.99 // Object.is equality - Expected + Received - 0.99 + 0.9999 ❯ src/components/TimeMilestones/utils.test.ts:56:47
src/components/TimeMilestones/utils.test.ts > getYearMilestone > in 7 month 2st day at 23:59 equals 0.5: src/components/TimeMilestones/utils.test.ts#L76
AssertionError: expected 0.5027 to be 0.5 // Object.is equality - Expected + Received - 0.5 + 0.5027 ❯ src/components/TimeMilestones/utils.test.ts:76:47
src/components/TimeMilestones/utils.test.ts > getYearMilestone > in 12 month 31st day at 23:59 equals 0.99: src/components/TimeMilestones/utils.test.ts#L76
AssertionError: expected 0.9999 to be 0.99 // Object.is equality - Expected + Received - 0.99 + 0.9999 ❯ src/components/TimeMilestones/utils.test.ts:76:47
src/components/TimeMilestones/utils.test.ts > getBirthDayMilestone > handles not appeared birth date in this year: src/components/TimeMilestones/utils.test.ts#L85
AssertionError: expected 0.7506 to be 0.75 // Object.is equality - Expected + Received - 0.75 + 0.7506 ❯ src/components/TimeMilestones/utils.test.ts:85:62
src/components/TimeMilestones/utils.test.ts > getBirthDayMilestone > handles appeared birth date in this year: src/components/TimeMilestones/utils.test.ts#L92
AssertionError: expected 0.5013 to be 0.5 // Object.is equality - Expected + Received - 0.5 + 0.5013 ❯ src/components/TimeMilestones/utils.test.ts:92:62
tests (Unit tests, pnpm unit-tests)
Process completed with exit code 1.
tests (Typecheck, pnpm typecheck)
The job was canceled because "Unit_tests_pnpm_unit-test" failed.
tests (Typecheck, pnpm typecheck)
The operation was canceled.