You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/packages/Rule_Tester.mdx
+70-10Lines changed: 70 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,27 @@ import { RuleTester } from '@typescript-eslint/rule-tester';
225
225
RuleTester.afterAll = mocha.after;
226
226
```
227
227
228
+
#### Node.js (`node:test`)
229
+
230
+
Consider setting up `RuleTester`'s static properties in a preloaded module using the [`--import`](https://nodejs.org/api/cli.html#--importmodule<
8000
/span>) or [`--require`](https://nodejs.org/api/cli.html#-r---require-module) flag:
Consider setting up `RuleTester`'s static properties in a preloaded module using the [`--import`](https://nodejs.org/api/cli.html#--importmodule) or [`--require`](https://nodejs.org/api/cli.html#-r---require-module) flag:
267
+
In general, `RuleTester` can support any test framework that exposes hooks for running code before or after rules.
268
+
From `RuleTester`'s [Static Properties](#static-properties), assign any of the following that the running test framework supports.
0 commit comments