Skip to content

Unit tests for import parser detection #269

@JJ-8

Description

@JJ-8

When you paste some JSON in the importer, the isValid function is evaluated on the input to see if we can detect the parser for the pasted data. The amount of parsers is slowly growing and it is annoying to have collisions in detection of the parser. Furthermore, manual testing becomes quite tedious since we do not have all the test inputs somewhere documented.

I think it is best to create a few unit tests to have an easy and documented way of testing the parsers and their isValid method. Here we can make sure that there won't be any collision in inferring the parser and that all parsers work correctly.

Probably we can add Jest to the frontend and introduce some unit tests in there? Quasar also has support for Jest: https://testing.quasar.dev/packages/unit-jest/
Through a Github Action we can test these parsers by default on every PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions