From f262e8f93182869139f6789070607c928b91e8bb Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Thu, 29 Aug 2024 17:45:22 +0200 Subject: [PATCH] Defines setInterval/setTimeout on faked globalThis in unit test --- package-lock.json | 14 +++++++------- package.json | 2 +- test/unit/all.js | 4 +++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index bb8d78a7..419bd7ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "jsdom": "^19.0.0", "jsonc-parser": "^3.0.0", "mocha": "^9.2.0", - "monaco-editor-core": "0.51.0-rc3", + "monaco-editor-core": "0.52.0-dev-20240826", "parcel": "^2.7.0", "pin-github-action": "^1.8.0", "playwright": "^1.32.2", @@ -5394,9 +5394,9 @@ "dev": true }, "node_modules/monaco-editor-core": { - "version": "0.51.0-rc3", - "resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.51.0-rc3.tgz", - "integrity": "sha512-2CrhqO3ZdUXhMjNeq851FfulE04GBSn1/HBy02qnR4N4ONG5S8HuQKCkQxxzEeK3E8FGqDoIXH5nyDXpLmDJHg==", + "version": "0.52.0-dev-20240826", + "resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.52.0-dev-20240826.tgz", + "integrity": "sha512-m5KQg1/SYSIWegxQlCloAeFcsfQUEeHlCGvj0+5wmYOFEruEOqf36f/wOlE9EoSXCTExM4gEOdBBZw/jZVKoIg==", "dev": true }, "node_modules/mri": { @@ -11150,9 +11150,9 @@ } }, "monaco-editor-core": { - "version": "0.51.0-rc3", - "resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.51.0-rc3.tgz", - "integrity": "sha512-2CrhqO3ZdUXhMjNeq851FfulE04GBSn1/HBy02qnR4N4ONG5S8HuQKCkQxxzEeK3E8FGqDoIXH5nyDXpLmDJHg==", + "version": "0.52.0-dev-20240826", + "resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.52.0-dev-20240826.tgz", + "integrity": "sha512-m5KQg1/SYSIWegxQlCloAeFcsfQUEeHlCGvj0+5wmYOFEruEOqf36f/wOlE9EoSXCTExM4gEOdBBZw/jZVKoIg==", "dev": true }, "mri": { diff --git a/package.json b/package.json index b13152db..e37721c1 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "jsdom": "^19.0.0", "jsonc-parser": "^3.0.0", "mocha": "^9.2.0", - "monaco-editor-core": "0.51.0-rc3", + "monaco-editor-core": "0.52.0-dev-20240826", "parcel": "^2.7.0", "pin-github-action": "^1.8.0", "playwright": "^1.32.2", diff --git a/test/unit/all.js b/test/unit/all.js index 2cb2b0f7..28d1d9f9 100644 --- a/test/unit/all.js +++ b/test/unit/all.js @@ -35,7 +35,9 @@ global.window = { matches: false, addEventListener: function () {} }; - } + }, + setInterval: function () {}, + setTimeout: function () {} }; requirejs(