Skip to content

Commit 7ea8efe

Browse files
author
Illia Obukhau
committed
build(run-e2e): replace chalk with ansi-colors
1 parent a72ccc3 commit 7ea8efe

File tree

7 files changed

+10
-12
lines changed

7 files changed

+10
-12
lines changed

automation/run-e2e/bin/run-e2e-in-chunks.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22

3+
import c from "ansi-colors";
34
import { execSync } from "node:child_process";
45
import parseArgs from "yargs-parser";
56
import assert from "node:assert/strict";
@@ -45,6 +46,8 @@ function main() {
4546
// Run e2e only we have packages in chunk
4647
if (filters.length > 0) {
4748
execSync(command, { stdio: "inherit" });
49+
} else {
50+
console.log(c.cyan("No packages in chunk, skip e2e."));
4851
}
4952
}
5053

automation/run-e2e/lib/ci.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import c from "chalk";
1+
import c from "ansi-colors";
22
import findFreePort from "find-free-port";
33
import nodeIp from "ip";
44
import fetch from "node-fetch";

automation/run-e2e/lib/dev.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { spawnSync } from "node:child_process";
22
import { delimiter } from "node:path";
33
import { fileURLToPath } from "node:url";
44
import parseArgs from "yargs-parser";
5-
import c from "chalk";
5+
import c from "ansi-colors";
66
import enquirer from "enquirer";
77
import { setupTestProject } from "./setup-test-project.mjs";
88
import { await200, updateWidget } from "./utils.mjs";

automation/run-e2e/lib/docker-utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { execSync } from "node:child_process";
22
import p from "node:path";
33
import { fileURLToPath } from "node:url";
44
import fetch from "node-fetch";
5-
import c from "chalk";
5+
import c from "ansi-colors";
66

77
const REGISTRY = "ghcr.io/mendix/web-widgets";
88

automation/run-e2e/lib/utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import c from "chalk";
1+
import c from "ansi-colors";
22
import { spawnSync } from "child_process";
33
import { readFileSync } from "fs";
44
import fetch from "node-fetch";

automation/run-e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lint": "eslint --ext .mjs ."
2020
},
2121
"dependencies": {
22-
"chalk": "^5.1.2",
22+
"ansi-colors": "^4.1.3",
2323
"cross-zip": "^4.0.0",
2424
"cypress": "^10.11.0",
2525
"cypress-image-diff-js": "^1.22.0",

pnpm-lock.yaml

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)