Skip to content

Commit a954edb

Browse files
committed
Fix lint errors
1 parent 5e368da commit a954edb

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

src/__tests__/render.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {render, cleanup} from '..'
21
import {h, defineComponent} from 'vue'
32
import '@testing-library/jest-dom'
3+
import {render, cleanup} from '..'
44

55
test('baseElement defaults to document.body', () => {
66
const {baseElement} = render({template: '<div />'})

types/index.d.ts

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Minimum TypeScript Version: 4.0
22
/* eslint-disable @typescript-eslint/no-explicit-any */
33

4-
import { VNodeChild } from 'vue';
5-
import { MountingOptions } from '@vue/test-utils'
6-
import { queries, EventType, BoundFunctions } from '@testing-library/dom'
4+
import {VNodeChild} from 'vue'
5+
import {MountingOptions} from '@vue/test-utils'
6+
import {queries, EventType, BoundFunctions} from '@testing-library/dom'
77
// eslint-disable-next-line import/no-extraneous-dependencies
8-
import { OptionsReceived as PrettyFormatOptions } from 'pretty-format'
9-
import type { ComponentProps, ComponentSlots } from "vue-component-type-helpers";
10-
import { RemoveIndexSignature } from "type-fest";
8+
import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'
9+
import {ComponentProps, ComponentSlots} from 'vue-component-type-helpers'
10+
import {RemoveIndexSignature} from 'type-fest'
1111

1212
// NOTE: fireEvent is overridden below
1313
export * from '@testing-library/dom'
@@ -48,16 +48,20 @@ interface VueTestingLibraryRenderOptions {
4848
baseElement?: Element
4949
}
5050

51-
5251
type AllowNonFunctionSlots<Slots> = {
53-
[K in keyof Slots]: Slots[K] | VNodeChild;
54-
};
55-
type ExtractSlots<C> = AllowNonFunctionSlots<Partial<RemoveIndexSignature<ComponentSlots<C>>>>;
52+
[K in keyof Slots]: Slots[K] | VNodeChild
53+
}
54+
type ExtractSlots<C> = AllowNonFunctionSlots<
55+
Partial<RemoveIndexSignature<ComponentSlots<C>>>
56+
>
5657

57-
export interface RenderOptions<C> extends Omit<VueTestingLibraryRenderOptions & VueTestUtilsRenderOptions
58-
, "props" | "slots"> {
59-
props?: ComponentProps<C>;
60-
slots?: ExtractSlots<C>;
58+
export interface RenderOptions<C>
59+
extends Omit<
60+
VueTestingLibraryRenderOptions & VueTestUtilsRenderOptions,
61+
'props' | 'slots'
62+
> {
63+
props?: ComponentProps<C>
64+
slots?: ExtractSlots<C>
6165
}
6266

6367
export function render<C>(

0 commit comments

Comments
 (0)