setupFiles.ts 687 B

123456789101112131415
  1. // Vitest doesn't work without globals
  2. // Ref: https://github.com/relmify/jest-fp-ts/issues/11
  3. import decodeMatchers from "@relmify/jest-fp-ts/dist/decodeMatchers"
  4. import eitherMatchers from "@relmify/jest-fp-ts/dist/eitherMatchers"
  5. import optionMatchers from "@relmify/jest-fp-ts/dist/optionMatchers"
  6. import theseMatchers from "@relmify/jest-fp-ts/dist/theseMatchers"
  7. import eitherOrTheseMatchers from "@relmify/jest-fp-ts/dist/eitherOrTheseMatchers"
  8. import { expect } from "vitest"
  9. expect.extend(decodeMatchers.matchers)
  10. expect.extend(eitherMatchers.matchers)
  11. expect.extend(optionMatchers.matchers)
  12. expect.extend(theseMatchers.matchers)
  13. expect.extend(eitherOrTheseMatchers.matchers)