Skip to content

DartProject.current doesn't work within a unit test. #136

Open

Description

@bsutton

The problem is that DartProject.current first calls Script.current.

When we are running in a unit test Script.current returns 'test.dart' which results in a bogus
DartProject.

Need to review how we detect the project as we have several different operation modes:

From local source
Compiled script
Running under a unit test.

Activity

  1. added a commit that references this issue on Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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