test(config): fix IDEA debugging

This commit is contained in:
Yaroslav Serhieiev
2023-10-11 18:35:41 +03:00
parent 881891f313
commit 1243c75aa0
+3 -1
View File
@@ -1,3 +1,5 @@
const DEBUG = process.argv.includes('--reporters');
/** @type{import('jest-allure2-reporter').ReporterOptions} */
const jestAllure2ReporterOptions = {
testCase: {
@@ -14,7 +16,7 @@ module.exports = {
setupFiles: [
'<rootDir>/__tests__/setupJest.js'
],
testEnvironment: 'jest-allure2-reporter/environment-node',
testEnvironment: DEBUG ? 'node' : 'jest-allure2-reporter/environment-node',
testRunner: 'jest-circus/runner',
roots: [
'node_modules',