github / vscode-codeql Public
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
Update typings for mocha #752
Update typings for mocha #752
Conversation
2512d38
to
065bcf1
Compare
|
Concerning that the integration tests are failing here. I'll have to explore why. |
This is includes an update of the lock file to the v2 format. It's a big change, but not much is happening here. I thought it best to keep it separate.
065bcf1
to
4f1b11c
Compare
|
Another review, please. The failing tests uncovered a problem with the way we are registering globals. It hasn't affected anything yet, but it's likely to do so in the future. |
|
Thanks. But, something's still weird and tests are stil failing. I'll have to inspect more. |
|
Do the downloaded CLI and the test DB need to be registered as globals? |
Updating the typings for mocha uncovered an error in how we were registering global setups and teardowns. When calling `mocha.globalSetup` or `mocha.globalTeardown`, any previously registered globals are overwritten. The workaround is to attach globals directly to the internal options object. This is a requirement because we are now registering globals in multiple files. Unfortunately, the typings for mocha do not permit this and I may need to fix them again.
4f1b11c
to
bbe3156
Compare
|
It was just a bad merge. I missed a few bits. Should be working now. |
* Update typings for mocha This is includes an update of the lock file to the v2 format. It's a big change, but not much is happening here. I thought it best to keep it separate. * Fix globalSetup/teardown for mocha Updating the typings for mocha uncovered an error in how we were registering global setups and teardowns. When calling `mocha.globalSetup` or `mocha.globalTeardown`, any previously registered globals are overwritten. The workaround is to attach globals directly to the internal options object. This is a requirement because we are now registering globals in multiple files. Unfortunately, the typings for mocha do not permit this and I may need to fix them again.
Internal change. Also, updates the lock file format for compatibility with npm v7.
Also, see the second commit:
Fix globalSetup/teardown for mocha
Updating the typings for mocha uncovered an error in how we were
registering global setups and teardowns.
When calling
mocha.globalSetupormocha.globalTeardown, anypreviously registered globals are overwritten. The workaround
is to attach globals directly to the internal options object.
This is a requirement because we are now registering globals in
multiple files.
Unfortunately, the typings for mocha do not permit this and I may need
to fix them again.
Checklist
@github/docs-content-dsphas been cc'd in all issues for UI or other user-facing changes made by this pull request.