Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
"prettier": "^3.6.0",
"router": "^2.2.0",
"standard-version": "^9.3.0",
"strip-ansi": "^6.0.0",
"supertest": "^7.0.0",
"typescript": "^5.3.3",
"webpack": "^5.101.0"
Expand Down
4 changes: 2 additions & 2 deletions test/logging.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import fs from "node:fs";
import os from "node:os";
import path from "node:path";

import { stripVTControlCharacters } from "node:util";
import execa from "execa";
import stripAnsi from "strip-ansi";

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

function stdoutToSnapshot(stdout) {
let cleanedStdout = stripAnsi(stdout.trim());
let cleanedStdout = stripVTControlCharacters(stdout.trim());

// Bugs in `strip-ansi`
cleanedStdout = cleanedStdout.replaceAll("null main ", "main");
Expand Down
Loading