Skip to content

Test js-slang behaviour individually #1475

Open
@RichDom2185

Description

@RichDom2185

Refer to the deleted test cases in #1469.

Restoring them would cause the stepper to fail, but at the same time, it does not make much sense to come up with extra set up (or potentially teardown) logic for each test case.

Proposal:

Similar to how TypeScript has compiler flags to enable/disable certain behaviours, perhaps we can disable some behaviour during unit tests and enable them by default in the built release.

That way, individual unit tests will also be less coupled to one another. Otherwise, as we add more features, it may get harder and harder to unit test them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or requestProposalProposing a feature, please discussimportantFixing this is important, but not mission-critical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions