Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bsutton opened this issue Apr 29, 2021 · 0 comments
Open

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

bsutton opened this issue Apr 29, 2021 · 0 comments

Comments

@bsutton
Copy link
Collaborator

bsutton commented Apr 29, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant