Skip to content

Use snapshots for testing rules #56

Closed
@j-f1

Description

@j-f1

We should use a snapshot system to test rules with each rule having a rule-name.ts fixture that is run through ESLint. Config can be provided by inline /* eslint */ comments, and any reported errors would be dumped to either a Jest snapshot or an errors.json file. We could either switch the test framework from Mocha to Jest or just import Jest’s expect function to get access to the toMatchSnapshot matcher.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy