Skip to content

Commit 3bf0a25

Browse files
leosvelperezFrozenPandaz
authored andcommitted
fix(testing): ignore jest-sequencer- paths in jest resolver (#23396)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #20865 (cherry picked from commit c434394)
1 parent 77a4f69 commit 3bf0a25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/jest/plugins/resolver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ module.exports = function (path: string, options: ResolveOptions) {
6767
} catch (e) {
6868
if (
6969
path === 'jest-sequencer-@jest/test-sequencer' ||
70-
path === '@jest/test-sequencer'
70+
path === '@jest/test-sequencer' ||
71+
path.startsWith('jest-sequencer-')
7172
) {
7273
return;
7374
}

0 commit comments

Comments
 (0)