Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions stryker-scope.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"services/commands/fuzzyScore.ts",
"services/commands/palettePreferences.ts",
"services/commands/commandBuilder.ts"
],
"testFiles": [
"tests/unit/commands/fuzzyScore.test.ts",
"tests/unit/commands/palettePreferences.test.ts",
"tests/unit/services/commandBuilder.test.ts"
]
},
{
Expand Down
6 changes: 6 additions & 0 deletions tests/unit/tooling/strykerWorkflowPolicy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ describe('Stryker workflow policy', () => {
expect(mutationModules).toHaveLength(8);
expect(new Set(mutationFiles).size).toBe(25);
expect(mutationModules.every(({ riskTier }) => ['A', 'B'].includes(riskTier))).toBe(true);
// QNBS-v3: [Validate the services-commands Stryker mapping / prevent test-scope drift / make the policy contract explicit]
expect(selectMutationModules('services-commands')[0]?.testFiles).toEqual([
'tests/unit/commands/fuzzyScore.test.ts',
'tests/unit/commands/palettePreferences.test.ts',
'tests/unit/services/commandBuilder.test.ts',
]);
Comment thread
coderabbitai[bot] marked this conversation as resolved.
expect(selectMutationModules('tier-a').every(({ riskTier }) => riskTier === 'A')).toBe(true);
expect(selectMutationModules('services-commands')).toHaveLength(1);
expect(selectMutationModules('copilot')[0]?.testFiles).toEqual([
Expand Down
Loading