Skip to content

Commit b819931

Browse files
committed
format
1 parent c3cf9b7 commit b819931

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

‎tests/build.mjs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ function getWorkloads() {
3636
}
3737
}
3838
if (skippedWorkloads.size > 0) {
39-
logWarn("Skipping the following excluded workloads:\n" + Array.from(skippedWorkloads).map(w => ` - ${w}`).join("\n"));
39+
logWarn(
40+
`Skipping the following excluded workloads:\n${
41+
Array.from(skippedWorkloads)
42+
.map((w) => ` - ${w}`)
43+
.join("\n")}`
44+
);
4045
}
4146
return Array.from(workloads);
4247
}
@@ -68,7 +73,7 @@ async function buildWorkloads(workloads) {
6873
console.log("================================================================================\n");
6974

7075
if (failedWorkloads.length > 0) {
71-
logError("Failed Workloads:\n" + failedWorkloads.map(w => ` - ${w}`).join("\n"));
76+
logError(`Failed Workloads:\n${ failedWorkloads.map((w) => ` - ${w}`).join("\n")}`);
7277

7378
process.exit(1);
7479
}

‎tests/excludes.mjs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const EXCLUDES = new Set([
2+
// TODO: Re-enable once packages are updated and node 22 is supported
3+
"suites/todomvc/architecture-examples/vue",
4+
"suites/todomvc/architecture-examples/vue-complex",
5+
"suites/newssite/news-nuxt",
6+
"suites/react-stockcharts",
7+
]);

‎tests/helper.mjs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export function logInfo(...args) {
2121

2222
export function logWarn(...args) {
2323
const text = args.join(" ");
24-
if (GITHUB_ACTIONS_OUTPUT) {
24+
if (GITHUB_ACTIONS_OUTPUT)
2525
console.warn(`::warning::${text.replace(/\n/g, "%0A")}`);
26-
} else {
26+
else
2727
console.warn(styleText("magenta", text));
28-
}
28+
2929
}
3030

3131
export function logError(...args) {

‎tests/unittests/suites.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ for (const [name, suites] of Object.entries(Suites)) {
7272
const baseUrl = isNode ? new URL("../../", import.meta.url).href : `${window.location.origin}/`;
7373
const brokenResourcesList = [];
7474
for (const suite of suites) {
75-
const isExcluded = [...EXCLUDES].some((excludePath) => suite.url.startsWith(excludePath + "/") || suite.url === excludePath);
75+
const isExcluded = [...EXCLUDES].some((excludePath) => suite.url.startsWith(`${excludePath }/`) || suite.url === excludePath);
7676
if (isExcluded) {
7777
console.warn(` ⚠ Skipping resources check for excluded suite: ${suite.name}`);
7878
continue;

0 commit comments

Comments
 (0)