microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/add-client-method-instrumentation

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

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
2import "@typescript-eslint/parser";
3import { RuleTester } from "@typescript-eslint/rule-tester";
4import * as vitest from "vitest";
5
6RuleTester.afterAll = vitest.afterAll;
7
8// If you are not using vitest with globals: true (https://vitest.dev/config/#globals):
9RuleTester.it = vitest.it;
10RuleTester.itOnly = vitest.it.only;
11RuleTester.describe = vitest.describe;
12