We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95eae6b commit ad710adCopy full SHA for ad710ad
1 file changed
configs/jest.js
@@ -1,3 +1,5 @@
1
+import globals from "globals";
2
+
3
/**
4
* @returns {Promise<Record<string, string>>} config
5
*/
@@ -17,6 +19,13 @@ async function getJestRecommendedConfig() {
17
19
return {
18
20
...jsdocConfig,
21
name: "jest/recommended",
22
+ languageOptions: {
23
+ globals: {
24
+ ...globals.node,
25
+ ...globals.browser,
26
+ ...globals.jest,
27
+ },
28
29
files: [
30
"**/{tests,test,__tests__}/**/*.?(c|m)[jt]s?(x)",
31
"**/?(*.)+(spec|test).?(c|m)[jt]s?(x)",
0 commit comments