Skip to content

Commit ba94f31

Browse files
committed
chore: const allowed_modules
1 parent 8fbb2e6 commit ba94f31

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

bin/testObservability/helper/constants.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,3 @@ exports.OBSERVABILITY_ENV_VARS = [
3030
];
3131

3232
exports.TEST_OBSERVABILITY_REPORTER = path.join(__dirname, '..', 'reporter');
33-
34-
exports.ALLOWED_MODULES = [
35-
'cypress/package.json',
36-
'mocha/lib/reporters/base.js',
37-
'mocha/lib/utils.js',
38-
'mocha'
39-
]

bin/testObservability/helper/helper.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ const GLOBAL_MODULE_PATH = execSync('npm root -g').toString().trim();
2525
const { name, version } = require('../../../package.json');
2626

2727
const { CYPRESS_V10_AND_ABOVE_CONFIG_FILE_EXTENSIONS } = require('../../helpers/constants');
28-
const { consoleHolder, API_URL, TEST_OBSERVABILITY_REPORTER, ALLOWED_MODULES } = require('./constants');
28+
const { consoleHolder, API_URL, TEST_OBSERVABILITY_REPORTER } = require('./constants');
29+
30+
const ALLOWED_MODULES = [
31+
'cypress/package.json',
32+
'mocha/lib/reporters/base.js',
33+
'mocha/lib/utils.js',
34+
'mocha'
35+
];
36+
2937
exports.pending_test_uploads = {
3038
count: 0
3139
};

0 commit comments

Comments
 (0)