Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 116a70e

Browse files
committed
Remove now unnecessary patch
1 parent d16fbfd commit 116a70e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

extensions/ql-vscode/patches/jest-runner-vscode+3.0.1.patch

-26
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,3 @@
1-
diff --git a/node_modules/jest-runner-vscode/dist/child/environment.js b/node_modules/jest-runner-vscode/dist/child/environment.js
2-
index 1ac28d5..f91f216 100644
3-
--- a/node_modules/jest-runner-vscode/dist/child/environment.js
4-
+++ b/node_modules/jest-runner-vscode/dist/child/environment.js
5-
@@ -10,6 +10,21 @@ const wrap_io_1 = __importDefault(require("./wrap-io"));
6-
const load_pnp_1 = __importDefault(require("./load-pnp"));
7-
const ipc = new ipc_client_1.default('env');
8-
class VSCodeEnvironment extends jest_environment_node_1.default {
9-
+ constructor(config, context) {
10-
+ super(config, context);
11-
+ // The _VSCODE_NODE_MODULES is a proxy which will require a module if any property
12-
+ // on it is accessed. This is a workaround for the fact that jest will call
13-
+ // _isMockFunction on the module, which will cause that function to be required.
14-
+ this.global._VSCODE_NODE_MODULES = new Proxy(this.global._VSCODE_NODE_MODULES, {
15-
+ get(target, prop) {
16-
+ if (prop === '_isMockFunction') {
17-
+ return undefined;
18-
+ }
19-
+ return target[prop];
20-
+ },
21-
+ });
22-
+ }
23-
+
24-
async setup() {
25-
await super.setup();
26-
await (0, load_pnp_1.default)();
271
diff --git a/node_modules/jest-runner-vscode/dist/child/runner.js b/node_modules/jest-runner-vscode/dist/child/runner.js
282
index 0663c5c..bdf4a8b 100644
293
--- a/node_modules/jest-runner-vscode/dist/child/runner.js

0 commit comments

Comments
 (0)