Skip to content

Commit

Permalink
test: add ts-expect-error for unused variable
Browse files Browse the repository at this point in the history
Note: you may get false positives in your editor saying that it is unused, however it is not. The error only shows up at build time
  • Loading branch information
wolfy1339 committed May 20, 2023
1 parent 97458ca commit 5245118
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("Smoke tests", () => {
});

it("can be used as a type", () => {
// @ts-expect-error TS6133 Unused variable
let octokit: Octokit;
octokit = new Octokit();
});
Expand Down

0 comments on commit 5245118

Please sign in to comment.