mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-26 00:16:21 +00:00
Fix incorrect types between testing library and vitest
This commit is contained in:
@@ -12,8 +12,6 @@ describe('<DuplicatedServersModal />', () => {
|
||||
);
|
||||
const mockServer = (data: Partial<ServerData> = {}) => fromPartial<ServerData>(data);
|
||||
|
||||
beforeEach(vi.clearAllMocks);
|
||||
|
||||
it.each([
|
||||
[[], 0],
|
||||
[[mockServer()], 2],
|
||||
|
||||
@@ -24,8 +24,6 @@ describe('<ImportServersBtn />', () => {
|
||||
/>,
|
||||
);
|
||||
|
||||
afterEach(vi.clearAllMocks);
|
||||
|
||||
it('shows tooltip on button hover', async () => {
|
||||
const { user } = setUp();
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@ describe('<ServerForm />', () => {
|
||||
const onSubmit = vi.fn();
|
||||
const setUp = () => render(<ServerForm onSubmit={onSubmit}>Something</ServerForm>);
|
||||
|
||||
afterEach(vi.resetAllMocks);
|
||||
|
||||
it('renders components', () => {
|
||||
setUp();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user