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 ed4fcb6 commit 974b7d8Copy full SHA for 974b7d8
lib/constants.ts
@@ -95,9 +95,11 @@ export const getBCDDir = () =>
95
* @throws An error if no valid mdn-bcd-results path detected
96
*/
97
export const getResultsDir = () =>
98
- get_dir(
99
- "RESULTS_DIR",
100
- "../mdn-bcd-results",
101
- "https://github.com/openwebdocs/mdn-bcd-results",
102
- try_results_dir,
103
- );
+ process.env.NODE_ENV === "test"
+ ? ""
+ : get_dir(
+ "RESULTS_DIR",
+ "../mdn-bcd-results",
+ "https://github.com/openwebdocs/mdn-bcd-results",
104
+ try_results_dir,
105
+ );
0 commit comments