Skip to content

Commit a14471d

Browse files
committed
Temporarily don't run v4 tests
1 parent 0f5eb30 commit a14471d

4 files changed

Lines changed: 19 additions & 8 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
node-version: [20, 22, 24]
31-
test: [unit, integration:v4, integration:v5:batch]
31+
test: [unit, integration:v5:batch]
3232
batch-index: [0, 1, 2, 3, 4]
3333
exclude:
3434
- test: unit

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,14 @@ export default defineConfig(
2626
},
2727
],
2828
},
29+
},
30+
{
31+
files: ["scripts/**/*.mjs"],
32+
languageOptions: {
33+
globals: {
34+
console: "readonly",
35+
process: "readonly",
36+
},
37+
},
2938
}
3039
);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"test:integration:base": "jest --force-exit --detectOpenHandles --testMatch='**/src/integration-tests/*.test.[jt]s?(x)'",
5252
"test:integration:v5": "cross-env ORKES_BACKEND_VERSION=5 npm run test:integration:base --",
5353
"test:integration:v4": "cross-env ORKES_BACKEND_VERSION=4 npm run test:integration:base --",
54-
"test:integration:v5:batch": "cross-env ORKES_BACKEND_VERSION=5 node scripts/run-integration-batch.js",
54+
"test:integration:v5:batch": "cross-env ORKES_BACKEND_VERSION=5 node scripts/run-integration-batch.mjs",
5555
"ci": "npm run lint && npm run test",
5656
"build": "tsup index.ts",
5757
"generate-openapi-layer": "openapi-ts",
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
#!/usr/bin/env node
2-
"use strict";
32
/**
43
* Runs one batch of integration tests (by file count). Splits src/integration-tests/*.test.* into 5 batches.
5-
* Usage: node scripts/run-integration-batch.js <batchIndex 0-4> [-- jest args...]
4+
* Usage: node scripts/run-integration-batch.mjs <batchIndex 0-4> [-- jest args...]
65
* Example: npm run test:integration:v5:batch -- 0
76
* Example: npm run test:integration:v5:batch -- 2 -- --ci --coverage
87
*/
98

10-
const fs = require("fs");
11-
const path = require("path");
12-
const { spawnSync } = require("child_process");
9+
import fs from "fs";
10+
import path from "path";
11+
import { spawnSync } from "child_process";
12+
import { fileURLToPath } from "url";
13+
14+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
1315

1416
const INTEGRATION_DIR = path.join(__dirname, "..", "src", "integration-tests");
1517
const TOTAL_BATCHES = 5;
@@ -34,7 +36,7 @@ function getPatternForBatch(batchIndex) {
3436
const raw = process.argv[2];
3537
const batchIndex = raw === undefined ? 0 : parseInt(raw, 10);
3638
if (Number.isNaN(batchIndex) || batchIndex < 0 || batchIndex >= TOTAL_BATCHES) {
37-
console.error(`Usage: run-integration-batch.js <batchIndex 0-${TOTAL_BATCHES - 1}> [-- jest args...]`);
39+
console.error(`Usage: run-integration-batch.mjs <batchIndex 0-${TOTAL_BATCHES - 1}> [-- jest args...]`);
3840
console.error(`Example: npm run test:integration:v5:batch -- 0`);
3941
console.error(`Example: npm run test:integration:v5:batch -- 2 -- --ci --coverage`);
4042
process.exit(1);

0 commit comments

Comments
 (0)