Skip to content

Commit 89d58ce

Browse files
committed
test: fix jest args order
1 parent 33f954c commit 89d58ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: scripts/test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ if (args['e2e-only']) {
1616
regex = e2ePathPattern
1717
const i = rawArgs.indexOf('--e2e-only')
1818
rawArgs.splice(i, 2)
19-
} else {
20-
rawArgs.push('--testPathIgnorePatterns', e2ePathPattern)
2119
}
2220

2321
const jestArgs = [
@@ -27,6 +25,10 @@ const jestArgs = [
2725
...(regex ? [regex] : [])
2826
]
2927

28+
if (!args['e2e-only']) {
29+
jestArgs.push('--testPathIgnorePatterns', e2ePathPattern)
30+
}
31+
3032
console.log(`running jest with args: ${jestArgs.join(' ')}`)
3133

3234
require('jest').run(jestArgs)

0 commit comments

Comments
 (0)