Skip to content

Refactor fixture tests so they don't generate a single giant snapshot file #1142

Closed
@bradzacher

Description

@bradzacher

Spawning off of #1141.

The fixture snapshots are pretty much impossible to read, and them being in one file makes the diff really hard to understand (which snapshot is which file?).

Also the snapshot format (jest's default object serialiser) makes it harder to read by adding in Object and Array everywhere.

Need to refactor all of this so that:

  • each fixture test is output its own snapshot file
  • the snapshot formatter outputs as pure JSON

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthas prthere is a PR raised to close thispackage: parserIssues related to @typescript-eslint/parserpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions