Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add cleanup comment that will make the tests pass
  • Loading branch information
kamranayub committed Apr 8, 2020
commit aa44aa91b64e0da163100695668e19931652a8ca
4 changes: 4 additions & 0 deletions src/tests/cleanup.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from 'react'
import { render, fireEvent } from '@testing-library/react'
import { cleanup } from '@testing-library/react/pure'
import { queryCache } from '..'
import { Page } from './cleanup'

describe('query cleanup', () => {
afterEach(() => {
queryCache.clear()
// This will make things pass as it force-flushes the microtask queue twice
// but it's a bandaid over an underlying issue
// await cleanup()
})

test('should prefetchQuery by force for first query', async () => {
Expand Down