Skip to content

Commit

Permalink
fix: skip cursor remove on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Oct 24, 2024
1 parent 743c60f commit 5c364f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ function runTest(file) {
}

const clearLastLine = () => {
if (isCI) return;
process.stdout.moveCursor(0, -1); // up one line
process.stdout.clearLine(1); // from cursor to end
};

async function run() {
const logs = [];
let done = 0;
let ok = 0;
let failed = [];
Expand All @@ -176,7 +176,9 @@ async function run() {
file = path.resolve(file);
const startTest = Date.now();
try {
console.log(pc.gray(`⏳ ${file} - ${done}/${files.length}`));
if (!isCI) {
console.log(pc.gray(`⏳ ${file} - ${done}/${files.length}`));
}
await runTest(file);
ok++;
addLog(
Expand Down

0 comments on commit 5c364f4

Please sign in to comment.