-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
refactor: do not infer project root from script location #1265
Conversation
ba1cf91
to
3b92ea6
Compare
Codecov Report
@@ Coverage Diff @@
## master #1265 +/- ##
==========================================
+ Coverage 71.15% 73.30% +2.14%
==========================================
Files 21 21
Lines 1650 1648 -2
==========================================
+ Hits 1174 1208 +34
+ Misses 476 440 -36
Continue to review full report at Codecov.
|
3b92ea6
to
aad74f3
Compare
- Renames the file with the only existing E2E test - Makes existing test use the API instance returned by `Api.createPlatform` - Adds another test that ensures we can still require the API from `platformProjectPath/cordova/Api.js`
aad74f3
to
0f33ee5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix(Api): do not infer project root from script location * fix(builders): do not infer project root from script location * fix(target): do not infer project root from script location * test(e2e): cleanup and extend E2E tests - Renames the file with the only existing E2E test - Makes existing test use the API instance returned by `Api.createPlatform` - Adds another test that ensures we can still require the API from `platformProjectPath/cordova/Api.js` * fix(check_reqs): do not infer project root from script location
Motivation and Context
The goal of this PR is to eliminate all areas where our JS library expects to be located inside the project directory.
This is to prepare for a change that will keep the library in node_modules and not copy it to the platform project.
Description
Basically this passes the project root that has been passed to
Api
to all places that need it but do not yet have it.This also extends the E2E tests to check that we do not have to require the Api from the platform project folder.
Testing