You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -325,6 +354,26 @@ describe('AIC included credit tiering and pool sizing', () => {
325
354
)
326
355
})
327
356
357
+
it('derives native report periods before selecting native included credit policies',async()=>{
358
+
constsummerFile=createNativeCsv([
359
+
['2026-08-31','mona','copilot','copilot_ai_credit','GPT-5','10','ai-credits','0.01','0.10','0','0.10','3900','example-org','Cost Center A','10','0.10'],
360
+
])
361
+
conststandardFile=createNativeCsv([
362
+
['2026-09-01','mona','copilot','copilot_ai_credit','GPT-5','10','ai-credits','0.01','0.10','0','0.10','3900','example-org','Cost Center A','10','0.10'],
it('keeps transition-period allocation for supported reports after the native policy boundary',async()=>{
190
+
constfile=createCsv([
191
+
['2026-09-01','mona','copilot','copilot_ai_credit','GPT-5','3000','ai-credits','0.01','30.00','0','30.00','False','300','example-org','Cost Center A','3000','30.00'],
192
+
])
193
+
constaggregator=newCaptureAggregator()
194
+
195
+
awaitrunPipeline(file,[aggregator])
196
+
197
+
expect(aggregator.result()).toEqual([
198
+
expect.objectContaining({
199
+
username: 'mona',
200
+
total_monthly_quota: 300,
201
+
aic_net_amount: 0,
202
+
}),
203
+
])
204
+
})
205
+
189
206
it('emits weighted progress for analysis and processing stages',async()=>{
190
207
constfile=createCsv([
191
208
['2026-03-01','mona','copilot','copilot_ai_credit','GPT-5','10','ai-credits','0.01','0.10','0','0.10','False','300','octo','Cost Center A','10','0.10'],
0 commit comments