Skip to content

Docs: document how to setup RuleTester.afterAll #7275

Closed
@gajus

Description

@gajus

Before You File a Documentation Request Please Confirm You Have Done The Following...

Suggested Changes

Error: Missing definition for `afterAll` - you must set one using `RuleTester.afterAll` or there must be one defined globally as `afterAll`.
    at Function.get afterAll [as afterAll] (/Users/gajus/Developer/gajus/eslint-plugin-canonical/node_modules/.pnpm/@typescript-eslint+rule-tester@6.1.0_@eslint+eslintrc@2.1.0_eslint@8.45.0_typescript@5.1.6/node_modules/@typescript-eslint/rule-tester/src/TestFramework.ts:65:11)
    at new RuleTester (/Users/gajus/Developer/gajus/eslint-plugin-canonical/node_modules/.pnpm/@typescript-eslint+rule-tester@6.1.0_@eslint+eslintrc@2.1.0_eslint@8.45.0_typescript@5.1.6/node_modules/@typescript-eslint/rule-tester/src/RuleTester.ts:100:17)

Just got the above error and I have no clue what is the correct action. Using mocha for what it is worth.

Affected URL(s)

https://typescript-eslint.io/packages/rule-tester

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuedocumentationDocumentation ("docs") that needs adding/updatingpackage: rule-testerIssues related to the @typescript-eslint/rule-tester package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions