Skip to content

Commit 7ec1156

Browse files
committed
Disable linting on ts-ignore lines
1 parent 3025cf5 commit 7ec1156

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/sdk/src/server/__tests__/server.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ let client: BackendClient;
2121
let customDomainClient: BackendClient;
2222

2323
beforeEach(() => {
24+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2425
// @ts-ignore
2526
ClientCredentials.mockImplementation(() => ({
2627
getToken: jest.fn().mockResolvedValue({
@@ -161,6 +162,7 @@ describe("BackendClient", () => {
161162
});
162163

163164
it("should handle OAuth token retrieval failure", async () => {
165+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
164166
// @ts-ignore
165167
ClientCredentials.mockImplementation(() => ({
166168
getToken: jest.fn().mockRejectedValue(new Error("Invalid credentials")),
@@ -633,6 +635,7 @@ describe("BackendClient", () => {
633635
.mockResolvedValueOnce(expiredTokenMock)
634636
.mockResolvedValueOnce(newTokenMock);
635637

638+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
636639
// @ts-ignore
637640
ClientCredentials.mockImplementation(() => ({
638641
getToken: getTokenMock,

0 commit comments

Comments
 (0)