Skip to content

Commit 71bf3ba

Browse files
committed
fix: Fixed an issue where cancel-in-progress was omitted
1 parent 9500366 commit 71bf3ba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/package/concurrency.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ describe("concurrencyJSON", () => {
88
{ group: "group", cancelInProgress: true },
99
{ group: "group", "cancel-in-progress": true },
1010
],
11+
[
12+
{ group: "group", cancelInProgress: false },
13+
{ group: "group", "cancel-in-progress": false },
14+
],
1115
])("concurrencyJSON(%j) returns %j", (input, expected) => {
1216
expect(concurrencyJSON(input)).toEqual(expected);
1317
});

lib/package/concurrency.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function concurrencyJSON(
1414

1515
return {
1616
group: concurrency.group,
17-
...(concurrency.cancelInProgress && {
17+
...(concurrency.cancelInProgress != null && {
1818
"cancel-in-progress": concurrency.cancelInProgress,
1919
}),
2020
};

0 commit comments

Comments
 (0)