This fixes the tests on VSCode 1.74.0. The issue is as follows: 1. Jest wil try reset all mocks after each test, as it should. 2. When Jest does this, it will loop over all global variables and check if they are mocks. 3. One of the global variables it checks is _VSCODE_NODE_MODULES, which is a proxy object. 4. When Jest checks whether it is a proxy by getting _isMockFunction on it, the `get` function on the proxy object will be called. 5. This will in turn call require, which will try to load the non-existing `_isMockFunction` module. This throws the error we are seeing. By removing the `_VSCODE_NODE_MODULES` property from the global object in the Jest environment, Jest will not try to reset it, and the tests should work again. See:41bf230089/packages/jest-runtime/src/index.ts (L1173-L1186)See:ed442a9e99/src/bootstrap-amd.js (L15)
CodeQL for Visual Studio Code
This project is an extension for Visual Studio Code that adds rich language support for CodeQL. It's used to find problems in code bases using CodeQL. It's written primarily in TypeScript.
The extension is released. You can download it from the Visual Studio Marketplace.
To see what has changed in the last few versions of the extension, see the Changelog.
Features
- Enables you to use CodeQL to query databases and discover problems in codebases.
- Shows the flow of data through the results of path queries, which is essential for triaging security results.
- Provides an easy way to run queries from the large, open source repository of CodeQL security queries.
- Adds IntelliSense to support you writing and editing your own CodeQL query and library files.
Project goals and scope
This project will track new feature development in CodeQL and, whenever appropriate, bring that functionality to the Visual Studio Code experience.
Dependencies
This extension depends on the following two extensions for required functionality. They will be installed automatically when you install VS Code CodeQL.
Contributing
This project welcomes contributions. See CONTRIBUTING.md for details on how to build, install, and contribute.
License
The CodeQL extension for Visual Studio Code is licensed under the MIT License. The version of CodeQL used by the CodeQL extension is subject to the CodeQL Research Terms & Conditions.
When using the GitHub logos, be sure to follow the GitHub logo guidelines.