Repository navigation
Kill the surviving mutants in graph-source-github-issues #62
Description
The GraphQL response guards, the rate-limit header parsing and the filter-to-variables and cursor encoding survive changes that break them. These are the most-affected files in @exadev/process-graph-source-github-issues on main's mutation run (https://github.com/ExaDev/process-graph/actions/runs/38170535483), with a few of the lines a surviving or uncovered mutant changes; the shard log and the uploaded HTML report have the full list.
packages/adapters/graph/source-github-issues/src/graphql.ts (31 survived, 6 without coverage):
packages/adapters/graph/source-github-issues/src/graphql.ts:62:3ConditionalExpression mutant, survived, ontypeof value === "object" && value !== null && !Array.isArray(value);packages/adapters/graph/source-github-issues/src/graphql.ts:90:25Regex mutant, survived, onif (reset !== null && /^\d+$/u.test(reset)) {packages/adapters/graph/source-github-issues/src/graphql.ts:94:7ConditionalExpression mutant, survived, onif (retryAfter !== null && /^\d+$/u.test(retryAfter)) {packages/adapters/graph/source-github-issues/src/graphql.ts:123:5ConditionalExpression mutant, survived, onresponse.status === forbidden &&
packages/adapters/graph/source-github-issues/src/source.ts (27 survived, 3 without coverage):
packages/adapters/graph/source-github-issues/src/source.ts:85:42ObjectLiteral mutant, survived, on): Readonly<Record<string, unknown>> => ({packages/adapters/graph/source-github-issues/src/source.ts:87:5ArrowFunction mutant, survived, on(state) => issueStates[state],packages/adapters/graph/source-github-issues/src/source.ts:89:11LogicalOperator mutant, survived, onlabels: filter?.labels ?? null,packages/adapters/graph/source-github-issues/src/source.ts:92:9ObjectLiteral mutant, survived, on? {
packages/adapters/graph/source-github-issues/src/cursor.ts (23 survived, 1 without coverage):
packages/adapters/graph/source-github-issues/src/cursor.ts:122:9ArrayDeclaration mutant, survived, on: [packages/adapters/graph/source-github-issues/src/cursor.ts:123:11LogicalOperator mutant, survived, onfilter.states ?? null,packages/adapters/graph/source-github-issues/src/cursor.ts:124:11LogicalOperator mutant, survived, onfilter.labels ?? null,packages/adapters/graph/source-github-issues/src/cursor.ts:127:15ArrayDeclaration mutant, survived, on: [filter.order.field, filter.order.direction],
Kill them by asserting the behaviour, not by loosening or removing any existing assertion. Raise the package's breakThreshold from the new baseline once they are killed. Found while setting the break thresholds in #60.
Activity