Skip to content

Commit acd3ecf

Browse files
committed
Skip older node versions
1 parent 59a1166 commit acd3ecf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/cloudflare/test/workflow.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import { deterministicTraceIdFromInstanceId, instrumentWorkflowWithSentry } from
55

66
const NODE_MAJOR_VERSION = parseInt(process.versions.node.split('.')[0]!);
77

8-
if (NODE_MAJOR_VERSION < 20) {
9-
process.exit(0); // Skip tests for Node.js versions below 20
10-
}
11-
128
const mockStep: WorkflowStep = {
139
do: vi
1410
.fn()
@@ -69,7 +65,7 @@ const INSTANCE_ID = 'ae0ee067-61b3-4852-9219-5d62282270f0';
6965
const SAMPLE_RAND = '0.44116884107728693';
7066
const TRACE_ID = INSTANCE_ID.replace(/-/g, '');
7167

72-
describe('workflows', () => {
68+
describe.skipIf(NODE_MAJOR_VERSION < 20)('workflows', () => {
7369
beforeEach(() => {
7470
vi.clearAllMocks();
7571
});

0 commit comments

Comments
 (0)