-
Notifications
You must be signed in to change notification settings - Fork 667
Fix issues related to plugin-stats / ts-node #1911
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 issues related to plugin-stats / ts-node #1911
Conversation
|
/assign @christianvogt |
|
@vojtechszocs why is the other PR also in here? can this not be a standalone change? |
No, this had to be based on #1871 since the jsdom setup is necessary for Edit: #1871 is merged so I'll update this PR. |
21df295 to
fcea404
Compare
Edit: PR updated, added one more commit. |
frontend/before-tests.js
Outdated
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.
I've realized that Jest takes care of this already via testEnvironment option which defaults to jsdom, i.e. using jest-environment-jsdom implementation.
Jest TestEnvironment is sandboxed, with each test suite having its own env. instance prepared upon setup and destroyed upon teardown.
Since plugin-stats now uses browser-env to setup jsdom, I'm removing this import.
|
/lgtm |
|
/refresh |
|
/approve |
bf77336 to
90bcc23
Compare
90bcc23 to
72b67ab
Compare
|
Some entries in |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, jelkosz, spadgett, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest ci/prow/e2e-aws |
|
/retest |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
Follow-up to #1871
Using programmatic
ts-noderegistration to un-ignore (i.e. allow transpiling) selected packages innode_modules, which is a work-around ofts-node's design philosophy of ignoring everything undernode_modulesby default.This should fix issues encountered by @rawagner and @christianvogt, i.e. ES module syntax errors coming from
node_modulescode, while trying to dynamically load plugins (their entry modules) as part of theplugin-statsscript.