Skip to content

Regression test to avoid accidentally importing values from "typescript" outside of loadConfig / project loading #1435

Closed
@cspotcode

Description

@cspotcode

In #1433, someone found we accidentally started importing values from typescript outside of our intelligent loadConfig / project loading logic. Can we add a regression test to detect this? Something like this should do the trick:

node -e "require('ts-node'); Object.keys(require.cache).< cannot contain typescript anywhere >"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions