Skip to content

Commit

Permalink
knip
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed May 22, 2023
1 parent 1b98b8e commit ab22392
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions knip.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"$schema": "https://unpkg.com/knip@next/schema.json",
"entry": ["src/index.ts!", "script/setup*.js"],
"ignoreBinaries": ["dedupe", "gh"],
// https://github.com/webpro/knip/issues/127

Check failure on line 5 in knip.jsonc

View workflow job for this annotation

GitHub Actions / lint

Unexpected comment
"ignore": ["src/environments/testEnvironmentTypes.ts"],

Check failure on line 6 in knip.jsonc

View workflow job for this annotation

GitHub Actions / lint

Expected object keys to be in ascending order. 'ignore' should be before 'ignoreBinaries'
"project": ["src/**/*.ts!", "script/**/*.js"]
}
6 changes: 3 additions & 3 deletions src/environments/testEnvironmentTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type TestFrameworkSelector = (
request: CftRequest
) => TestFramework | undefined;

interface TestFramework {
export interface TestFramework {
/**
* Adds a callback to be called after each test.
* @param callback - Called after each test.
Expand All @@ -27,11 +27,11 @@ interface TestFramework {
mapSpyCalls?: (call: SpyCallsAndName) => SpyCallArgs[];
}

interface TestAfterHooks {
export interface TestAfterHooks {
reportComplaint?: (complaint: TestComplaint) => void;
}

interface SpyCallsAndName {
export interface SpyCallsAndName {
methodCalls: SpyCallArgs[];
methodName: string;
}
Expand Down

0 comments on commit ab22392

Please sign in to comment.