From c4343948ca2f74f8cbdedbe2efee789a540a9bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Wed, 15 May 2024 14:45:07 +0200 Subject: [PATCH] fix(testing): ignore jest-sequencer- paths in jest resolver (#23396) ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes #20865 --- packages/jest/plugins/resolver.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jest/plugins/resolver.ts b/packages/jest/plugins/resolver.ts index cdaf45f2f48d1..9cdd26d2fb036 100644 --- a/packages/jest/plugins/resolver.ts +++ b/packages/jest/plugins/resolver.ts @@ -67,7 +67,8 @@ module.exports = function (path: string, options: ResolveOptions) { } catch (e) { if ( path === 'jest-sequencer-@jest/test-sequencer' || - path === '@jest/test-sequencer' + path === '@jest/test-sequencer' || + path.startsWith('jest-sequencer-') ) { return; }