Skip to content

Commit fded1e2

Browse files
authored
test(mutation): bind ai-core shard to direct tests (#458)
1 parent 9a56f90 commit fded1e2

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

stryker-scope.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
"services/ai/fetchAdapter.ts",
3636
"services/ai/routingLogger.ts",
3737
"services/ai/aiModeService.ts"
38+
],
39+
"testFiles": [
40+
"tests/unit/ai/modelRecommendations.test.ts",
41+
"tests/unit/ai/aiPolicy.test.ts",
42+
"tests/unit/ai/aiRetry.test.ts",
43+
"tests/unit/services/fetchAdapter.test.ts",
44+
"tests/unit/ai/routingLogger.test.ts",
45+
"tests/unit/ai/aiModeService.test.ts"
3846
]
3947
},
4048
{

tests/unit/tooling/strykerWorkflowPolicy.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ describe('Stryker workflow policy', () => {
3838
]);
3939
expect(selectMutationModules('tier-a').every(({ riskTier }) => riskTier === 'A')).toBe(true);
4040
expect(selectMutationModules('services-commands')).toHaveLength(1);
41+
// QNBS-v3: [Validate the services-ai-core Stryker mapping / prevent weak related-test selection / bind Tier-A mutants to direct tests]
42+
expect(selectMutationModules('services-ai-core')[0]?.testFiles).toEqual([
43+
'tests/unit/ai/modelRecommendations.test.ts',
44+
'tests/unit/ai/aiPolicy.test.ts',
45+
'tests/unit/ai/aiRetry.test.ts',
46+
'tests/unit/services/fetchAdapter.test.ts',
47+
'tests/unit/ai/routingLogger.test.ts',
48+
'tests/unit/ai/aiModeService.test.ts',
49+
]);
4150
expect(selectMutationModules('copilot')[0]?.testFiles).toEqual([
4251
'tests/unit/copilot/heuristicEngine.test.ts',
4352
'tests/unit/copilot/insightGenerator.test.ts',

0 commit comments

Comments
 (0)