-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix for failing 'gulp test-coverage' command #5128
Conversation
@snapwich Would you mind having a look? I tried to fix the command, but could not do so without commenting out the |
So I've fixed this once before, the issue is with the This really is an issue with that plugin, it doesn't like circular dependencies even though ES6 allows circular dependencies and works correctly in our situation (as you can see the tests pass just fine). So if we want to continue using that plugin I guess we need to remove the circular dependency. I'm of pretty strong opinion that |
@snapwich Thanks for pointing out that circular dependency issue. It would've taken ages for me out the cause of the error on my own. I've now replaced Although, please note that in order to use this plugin, you have to upgrade your Node version to You can check the command by running |
Thanks for fixing this. Are there any repercussions to requiring Node > 12? We state in the README So we will need to update this, right? Or is this really only going to affect people who want to run gulp test-coverage? |
We have run into issues on-boarding new devs who get their new laptops and have the latest and greatest npm and node versions installed, and the only way to get their prebid environment working is to have them use older npm and node versions. I am not super keen on versioning and all that so obviously I defer to the more practiced users! But just wanted to ask a couple questions to be sure. |
There are some other packages that need to be updated to work with the newer Node versions. I recall this issue noted some of the packages that need to addressed #3878 but there may be others as well. |
When I try to use node v12, |
I've upgraded the package, |
I just realised the command We need to update wdio version. Till then, if you want to run the command Change line: 21 to:
|
Closing this ticket in lieu of #5236 which has all the other related items to support node 12. The test-coverage fixes are part of this other ticket. |
Type of change
Description of change
Gulp command
gulp test-coverage
has been failing with the following error:Suspected cause of this failure is the commit related to this PR: #5092
The error is originating from the
utils.js
file. The currently generated source map is not able to accurately point out the exact location of the error for me to fix it!I've currently removed this file,
src/utils.js
from our code-coverage checks to make the command work again since it's critical to check test coverage of new PRs (especially bid adapters) as it's an important part of code review process.