Skip to content

Commit

Permalink
frontend: use import instead of manually extending expect in src/test…
Browse files Browse the repository at this point in the history
  • Loading branch information
BacLuc committed Nov 12, 2023
1 parent 112fb04 commit f5710c1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/tests/setup.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { expect, afterEach } from 'vitest'
import { cleanup } from '@testing-library/vue'
import matchers from '@testing-library/jest-dom/matchers'
import '@testing-library/jest-dom/vitest'
import snapshotSerializer from 'jest-serializer-vue-tjw'
import 'vitest-canvas-mock'

// extends Vitest's expect method with methods from vue-testing-library
expect.extend(matchers)

// runs a cleanup after each test case (e.g. clearing jsdom)
afterEach(() => {
cleanup()
Expand Down

0 comments on commit f5710c1

Please sign in to comment.