commit 7c4b3317be721ed9cc21942ca1723c6c37535781
parent 6b92f541f0911637bf74b33fa69c0bf748593bc5
Author: Beth Rennie <beth@brennie.ca>
Date: Wed, 5 Nov 2025 19:14:30 +0000
Bug 1969102 - Add Mochia to xpcshell tests r=Standard8,Gijs,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D249125
Diffstat:
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/testing/xpcshell/head.js b/testing/xpcshell/head.js
@@ -2033,3 +2033,9 @@ Object.defineProperty(this, "mozinfo", {
return _mozinfo;
},
});
+
+/* import-globals-from ../modules/Mochia.js */
+Services.scriptloader.loadSubScript(
+ "resource://testing-common/Mochia.js",
+ this
+);
diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/xpcshell-test.mjs b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/xpcshell-test.mjs
@@ -10,6 +10,13 @@ export default {
"mozilla/xpcshell": true,
},
+ globals: {
+ afterEach: false,
+ beforeEach: false,
+ describe: false,
+ it: false,
+ },
+
name: "mozilla/xpcshell-test",
plugins: ["mozilla", "@microsoft/sdl"],