Skip to content

Commit be10aa6

Browse files
chore(deps): remove strip-ansi (#2166)
1 parent 0c4431b commit be10aa6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
"prettier": "^3.6.0",
103103
"router": "^2.2.0",
104104
"standard-version": "^9.3.0",
105-
"strip-ansi": "^6.0.0",
106105
"supertest": "^7.0.0",
107106
"typescript": "^5.3.3",
108107
"webpack": "^5.101.0"

test/logging.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import fs from "node:fs";
22
import os from "node:os";
33
import path from "node:path";
44

5+
import { stripVTControlCharacters } from "node:util";
56
import execa from "execa";
6-
import stripAnsi from "strip-ansi";
77

88
function extractErrorEntry(string) {
99
const matches = string.match(/error:\s\D[^:||\n||\r]+/gim);
@@ -12,7 +12,7 @@ function extractErrorEntry(string) {
1212
}
1313

1414
function stdoutToSnapshot(stdout) {
15-
let cleanedStdout = stripAnsi(stdout.trim());
15+
let cleanedStdout = stripVTControlCharacters(stdout.trim());
1616

1717
// Bugs in `strip-ansi`
1818
cleanedStdout = cleanedStdout.replaceAll("null main ", "main");

0 commit comments

Comments
 (0)