microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
packages/eslint-plugin-typespec/test/global-setup.ts
11lines · modecode
| 1 | // Preload the parser so it doesn't slow down the first test as much |
| 2 | import "@typescript-eslint/parser"; |
| 3 | import { RuleTester } from "@typescript-eslint/rule-tester"; |
| 4 | import * as vitest from "vitest"; |
| 5 | |
| 6 | RuleTester.afterAll = vitest.afterAll; |
| 7 | |
| 8 | // If you are not using vitest with globals: true (https://vitest.dev/config/#globals): |
| 9 | RuleTester.it = vitest.it; |
| 10 | RuleTester.itOnly = vitest.it.only; |
| 11 | RuleTester.describe = vitest.describe; |
| 12 | |