Skip to content

Refactor so that new rules can be easily added #9

Open
@pmcelhaney

Description

@pmcelhaney

This repository currently only contains one transform. It's tested by looping over fixture files with <test>.input.js and <test>.output.js.

There's no reason we shouldn't be able to use the same test for additional transforms and provide a new set of fixtures for each transform.

We can also automatically the scan the fixtures directory rather than referencing each one in the test file.

The only question is what to do with the comments describing each transform. I'm going to solve that by creating a <test>.md file for each of the fixtures. In the future, we could write a script to automatically generate documentation that collects everything in one place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions