Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use snapshots for testing rules #56

Closed
Labels
enhancementNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@j-f1

Description

@j-f1

We should use a snapshot system to test rules with each rule having arule-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 anerrors.json file. We could either switch the test framework from Mocha to Jest or just import Jest’sexpect function to get access to thetoMatchSnapshot 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp