Skip to content

Commit c81065f

Browse files
authored
chore(repo): Remove jest eslint rules from @clerk/clerk-react (#7166)
1 parent 49f1fcc commit c81065f

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

.changeset/great-cobras-give.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ export default tseslint.config([
367367
},
368368
},
369369
{
370-
name: 'packages/clerk-js - vitest',
371-
files: ['packages/clerk-js/src/**/*.test.{ts,tsx}'],
370+
name: 'packages - vitest',
371+
files: ['packages/*/src/**/*.test.{ts,tsx}'],
372372
rules: {
373373
'jest/unbound-method': 'off',
374374
'@typescript-eslint/unbound-method': 'off',

packages/chrome-extension/src/internal/utils/__tests__/cookies.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ describe('Cookies', () => {
2525
const name = '__client';
2626
const cookie = createCookie({ name, value: 'foo', domain });
2727

28-
// eslint-disable-next-line jest/unbound-method -- The Jest ESLint plugin doesn't support Vitest
2928
const getMock = vi.mocked(browser.cookies.get);
3029

3130
afterEach(() => getMock.mockReset());

packages/chrome-extension/src/internal/utils/__tests__/storage.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ describe('StorageCache', () => {
2222

2323
describe('set', () => {
2424
test('setting the storage cache', async () => {
25-
// eslint-disable-next-line jest/unbound-method -- The Jest ESLint plugin doesn't support Vitest
2625
const setMock = vi.mocked(browser.storage.local.set).mockResolvedValueOnce(_void);
2726

2827
expect(await BrowserStorageCache.set(KEY, VALUE)).toBe(_void);
@@ -33,7 +32,6 @@ describe('StorageCache', () => {
3332

3433
describe('remove', () => {
3534
test('removing from the storage cache', async () => {
36-
// eslint-disable-next-line jest/unbound-method -- The Jest ESLint plugin doesn't support Vitest
3735
const removeMock = vi.mocked(browser.storage.local.remove).mockResolvedValueOnce(_void);
3836

3937
expect(await BrowserStorageCache.remove(KEY)).toBe(_void);
@@ -48,7 +46,6 @@ describe('StorageCache', () => {
4846
});
4947

5048
test('value missing', async () => {
51-
// eslint-disable-next-line jest/unbound-method -- The Jest ESLint plugin doesn't support Vitest
5249
const getMock = vi.mocked(browser.storage.local.get).mockResolvedValue({});
5350

5451
expect(await BrowserStorageCache.get(KEY)).toBeUndefined();
@@ -57,7 +54,6 @@ describe('StorageCache', () => {
5754
});
5855

5956
test('value exists', async () => {
60-
// eslint-disable-next-line jest/unbound-method -- The Jest ESLint plugin doesn't support Vitest
6157
const getMock = vi.mocked(browser.storage.local.get).mockResolvedValue({ [KEY]: VALUE });
6258

6359
expect(await BrowserStorageCache.get(KEY)).toBe(VALUE);

packages/react/src/hooks/__tests__/useAuth.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ describe('useDerivedAuth', () => {
284284
};
285285
renderHook(() => useDerivedAuth(authObject));
286286

287-
// eslint-disable-next-line jest/unbound-method
288287
expect(errorThrower.throw).toHaveBeenCalledWith(invalidStateError);
289288
});
290289

0 commit comments

Comments
 (0)