Skip to content

Commit 8fbb2e6

Browse files
committed
chore: remove jest
1 parent 2fa671b commit 8fbb2e6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/testObservability/helper/helper.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ exports.resolveModule = (module) => {
755755
if (WORKSPACE_MODULE_PATH) {
756756
exports.debug(`Getting ${module} from path ${WORKSPACE_MODULE_PATH}`);
757757
let workspace_path = null;
758-
if (['jest-runner', 'jest-runtime'].includes(module)) {workspace_path = path.join(WORKSPACE_MODULE_PATH, 'node_modules', 'jest', 'node_modules', module)} else {workspace_path = path.join(WORKSPACE_MODULE_PATH, 'node_modules', module)}
758+
workspace_path = path.join(WORKSPACE_MODULE_PATH, 'node_modules', module);
759759
if (workspace_path && fs.existsSync(workspace_path)) {
760760
exports.debug(`Found ${module} from ${WORKSPACE_MODULE_PATH}`);
761761

@@ -766,7 +766,7 @@ exports.resolveModule = (module) => {
766766
/* Find from node path */
767767
let node_path = null;
768768
if (!exports.isUndefined(process.env.NODE_PATH)) {
769-
if (['jest-runner', 'jest-runtime'].includes(module)) {node_path = path.join(process.env.NODE_PATH, 'jest', 'node_modules', module)} else {node_path = path.join(process.env.NODE_PATH, module)}
769+
node_path = path.join(process.env.NODE_PATH, module);
770770
}
771771
if (node_path && fs.existsSync(node_path)) {
772772
exports.debug(`Getting ${module} from ${process.env.NODE_PATH}`);
@@ -777,8 +777,7 @@ exports.resolveModule = (module) => {
777777
/* Find from global node modules path */
778778
exports.debug(`Getting ${module} from ${GLOBAL_MODULE_PATH}`);
779779

780-
let global_path = null;
781-
global_path = path.join(GLOBAL_MODULE_PATH, module);
780+
let global_path = path.join(GLOBAL_MODULE_PATH, module);
782781
if (!global_path || !fs.existsSync(global_path)) {
783782
return {error: 'module_not_found'};
784783
}

0 commit comments

Comments
 (0)