Skip to content

Commit 09794a8

Browse files
committed
style: biome format
1 parent fd0c098 commit 09794a8

3 files changed

Lines changed: 30 additions & 8 deletions

File tree

‎scripts/quality/ci-plan.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212
deriveCiCategories,
1313
FULL_BROWSER_SHARDS,
1414
impactFlags,
15-
libraryLane,
1615
LIBRARY_PACKAGES,
16+
libraryLane,
1717
POLICY_VERSION,
1818
promisedLanesForCategories,
1919
selectedCiLanes,

‎scripts/quality/ci-plan.test.mjs‎

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { preflightCommands } from './ci-preflight.mjs';
1313
import { laneArgv } from './validation-lanes.mjs';
1414
import {
1515
CI_CATEGORIES,
16-
FULL_BROWSER_SHARDS,
1716
deriveCiCategories,
17+
FULL_BROWSER_SHARDS,
1818
libraryLane,
1919
promisedLanesForCategories,
2020
selectedCiLanes,
@@ -90,8 +90,16 @@ assert.deepEqual(libraryLane(['crates/varve-wasm/src/lib.rs']), {
9090
});
9191
assert.deepEqual(libraryLane([]), { selected: false, packages: [] });
9292
const cargoChangeCategories = {
93-
pipeline: true, js: false, rust: true, wasm: true, website: false,
94-
e2e: false, visual: false, desktop: true, models: false, bench: false,
93+
pipeline: true,
94+
js: false,
95+
rust: true,
96+
wasm: true,
97+
website: false,
98+
e2e: false,
99+
visual: false,
100+
desktop: true,
101+
models: false,
102+
bench: false,
95103
};
96104
const cargoChangeLanes = selectedCiLanes(
97105
{ tiers: {}, rootCargoChanged: true },
@@ -122,7 +130,10 @@ try {
122130
other: [],
123131
app: [],
124132
},
125-
directE2eFiles: [], e2eDomains: [], benchDomains: [], full: false,
133+
directE2eFiles: [],
134+
e2eDomains: [],
135+
benchDomains: [],
136+
full: false,
126137
stats: { jsPackages: [], rustCrates: [] },
127138
});
128139
mkdirSync(join(laneRoot, 'crates/varve-core/src'), { recursive: true });
@@ -136,7 +147,10 @@ try {
136147
git('commit', '-qm', 'library change');
137148
const libraryHead = git('rev-parse', 'HEAD');
138149
const libraryPlan = buildCiPlan({
139-
base, head: libraryHead, root: laneRoot, planner: plannerFor,
150+
base,
151+
head: libraryHead,
152+
root: laneRoot,
153+
planner: plannerFor,
140154
});
141155
assert.equal(libraryPlan.libraryOnly, true);
142156
assert.deepEqual(libraryPlan.libraryPackages, ['varve-media']);
@@ -146,7 +160,12 @@ try {
146160
git('add', '.');
147161
git('commit', '-qm', 'root lock change');
148162
const lockHead = git('rev-parse', 'HEAD');
149-
const lockPlan = buildCiPlan({ base: libraryHead, head: lockHead, root: laneRoot, planner: plannerFor });
163+
const lockPlan = buildCiPlan({
164+
base: libraryHead,
165+
head: lockHead,
166+
root: laneRoot,
167+
planner: plannerFor,
168+
});
150169
assert.equal(lockPlan.libraryOnly, false, 'Cargo.lock does not select library-only lane');
151170
assert.deepEqual(lockPlan.libraryPackages, []);
152171
assert.equal(lockPlan.categories.rust, true);

‎scripts/validate-workflows.test.mjs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,10 @@ assert.deepEqual(
852852
assert.match(libraryCi, /cargo test -p .* --locked/);
853853
assert.match(libraryCi, /cargo check --workspace --locked/);
854854
assert.match(libraryCi, /cargo test --workspace --locked/);
855-
assert.match(libraryCi, /cargo check --manifest-path apps\/desktop\/src-tauri\/Cargo\.toml --locked/);
855+
assert.match(
856+
libraryCi,
857+
/cargo check --manifest-path apps\/desktop\/src-tauri\/Cargo\.toml --locked/,
858+
);
856859
assert.match(libraryCi, /persist-credentials: false/);
857860
const release = fs.readFileSync('.github/workflows/release.yml', 'utf-8');
858861
assert.match(

0 commit comments

Comments
 (0)