Skip to content

Commit

Permalink
Bump almost all the deps (#1790)
Browse files Browse the repository at this point in the history
bump almost all the deps
  • Loading branch information
david-crespo authored Oct 14, 2023
1 parent d07ca14 commit 9940fd0
Show file tree
Hide file tree
Showing 3 changed files with 2,062 additions and 1,468 deletions.
15 changes: 2 additions & 13 deletions app/test/unit/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,14 @@
* This file is ran by vitest before any tests are ran. Configuration
* in this file does _not_ impact end-to-end tests.
*/
import matchers, { type TestingLibraryMatchers } from '@testing-library/jest-dom/matchers'
import '@testing-library/jest-dom/vitest'
import { cleanup } from '@testing-library/react'
import { afterAll, afterEach, beforeAll, expect } from 'vitest'
import { afterAll, afterEach, beforeAll } from 'vitest'

import { resetDb } from '@oxide/api-mocks'

import { server } from './server'

// fancy asserts
expect.extend(matchers)

// make TS not be confused by the jest matchers being on the vitest expect
declare module 'vitest' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
interface JestAssertion<T = any>
extends jest.Matchers<void, T>,
TestingLibraryMatchers<T, void> {}
}

beforeAll(() => server.listen())
afterEach(() => {
resetDb()
Expand Down
Loading

0 comments on commit 9940fd0

Please sign in to comment.