adjust ai insight and seed data

This commit is contained in:
Alberto-Audrix committed 2026-09-18 11:34:07 +07:00
1 parent 68e0d1a0bb
commit a2b5b10977
18 files changed
+1835 -140

No files matched your search

@@ -30,7 +30,7 @@ describe('buildDashboardInsightMetrics', () => {
iot_weight: 1400,
mortality_total: 500,
harvest_total: 100,
harvest_weight_total: 150.5,
harvest_weight_total: 150_500, // grams
feed_total: 400,
},
],
@@ -45,7 +45,7 @@ describe('buildDashboardInsightMetrics', () => {
expect(metrics.hari_ke).toBe(28);
expect(metrics.fcr).toBe(1.55);
expect(metrics.eef).toBe(260);
expect(metrics.ayam_hidup_ekor).toBe(9500);
expect(metrics.ayam_hidup_ekor).toBe(9400); // 9500 life − 100 harvest
expect(metrics.mortalitas_kumulatif_persen).toBe(5);
expect(metrics.bobot_avg_gram).toBe(1400);
expect(metrics.doc_in_ekor).toBe(10000);
@@ -108,7 +108,7 @@ describe('scopeDashboardInsightMetrics', () => {
iot_weight: 450,
mortality_total: 200,
harvest_total: 50,
harvest_weight_total: 80,
harvest_weight_total: 80_000, // grams
feed_total: 90,
},
],