Skip to content

Pull out @salesforce import transforms not relevant to OSS #44

@trevor-bliss

Description

@trevor-bliss

In a test, the @salesforce scoped module imports will be automatically transpiled to provide a default value since the actual value would require a connection to an active app.

For example, import myMethod from '@salesforce/apex/FooController.fooMethod' will be automatically transpiled to define myMethod and set it's value to some reasonable default. In this case, myMethod will be a function that returns a resolved Promise.

Most (all?) of these @salesforce imports are not relevant to people not devloping on the Salesforce platform. We should pull these transforms out into a separate project and only apply them when tests are run on the platform.

W-6834501

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions