We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5455279 commit a5be448Copy full SHA for a5be448
1 file changed
lib/internal/test_runner/test.js
@@ -919,6 +919,13 @@ class Suite extends Test {
919
return { __proto__: null, ctx, args: [ctx] };
920
}
921
922
+ hasConcurrency() {
923
+ if (this.runOnlySubtests && !this.buildPhaseFinished) {
924
+ return false;
925
+ }
926
+ return super.hasConcurrency();
927
928
+
929
async run() {
930
const hookArgs = this.getRunArgs();
931
@@ -939,6 +946,7 @@ class Suite extends Test {
939
946
940
947
await this.runHook('before', hookArgs);
941
948
949
+ this.processPendingSubtests();
942
950
stopPromise = stopTest(this.timeout, this.signal);
943
951
const subtests = this.skipped || this.error ? [] : this.subtests;
944
952
const promise = SafePromiseAll(subtests, (subtests) => subtests.start());
0 commit comments