diff --git a/run-tests.js b/run-tests.js index 8248ec4f640a49..75c3619b1a0779 100644 --- a/run-tests.js +++ b/run-tests.js @@ -400,8 +400,7 @@ ${ENDGROUP}`) const hasIsolatedTests = tests.some((test) => { return configuredTestTypes.some( - (type) => - type !== testFilters.unit && test.file.startsWith(`test/${type}`) + (type) => typeof type === 'string' && test.file.startsWith(type) ) })