Skip to content

Commit 672c6fa

Browse files
fix: replace as any with unknown cast to satisfy no-explicit-any lint rule
1 parent f953799 commit 672c6fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

__tests__/auth-provider.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import '@testing-library/jest-dom';
77
import { act, render, renderHook, screen, waitFor } from '@testing-library/react';
88
import React, { StrictMode, useContext } from 'react';
99
import pkg from '../package.json';
10-
import { Auth0Provider, createAuth0Client, useAuth0 } from '../src';
10+
import { Auth0Provider, Auth0ProviderOptions, createAuth0Client, useAuth0 } from '../src';
1111
import Auth0Context, {
1212
Auth0ContextInterface,
1313
initialContext,
@@ -157,7 +157,7 @@ describe('Auth0Provider', () => {
157157

158158
it('should warn when client prop is used alongside domain or clientId', async () => {
159159
const warn = jest.spyOn(console, 'warn').mockImplementation(() => undefined);
160-
const wrapper = createWrapper({ client: clientMock, domain: 'foo', clientId: 'bar' } as any);
160+
const wrapper = createWrapper({ client: clientMock, domain: 'foo', clientId: 'bar' } as unknown as Partial<Auth0ProviderOptions>);
161161
renderHook(() => useContext(Auth0Context), { wrapper });
162162
await waitFor(() => {
163163
expect(warn).toHaveBeenCalledWith(

0 commit comments

Comments
 (0)