Skip to content

Commit 9e6d34c

Browse files
committed
chore: fix lint
1 parent e78659b commit 9e6d34c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/__tests__/wait-for.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ test.each([false, true])(
143143
fireEvent.press(screen.getByText('Change freshness!'));
144144
expect(screen.queryByText('Fresh')).toBeNull();
145145

146-
act(() => {
146+
await act(() => {
147147
jest.advanceTimersByTime(300);
148148
});
149149
const freshBananaText = await waitFor(() => screen.getByText('Fresh'));

src/helpers/debug.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ export type DebugOptions = {
88
/**
99
* Log pretty-printed deep test component instance
1010
*/
11-
export function debug(
12-
instance: JsonNode | JsonNode[],
13-
options?: DebugOptions | string,
14-
) {
11+
export function debug(instance: JsonNode | JsonNode[], options?: DebugOptions | string) {
1512
const message = typeof options === 'string' ? options : options?.message;
1613

1714
const formatOptions = typeof options === 'object' ? { mapProps: options?.mapProps } : undefined;

0 commit comments

Comments
 (0)