aboutsummaryrefslogtreecommitdiff
path: root/packages/upgrade/test/utils.js
diff options
context:
space:
mode:
authorGravatar Cristopher <32661241+Namchee@users.noreply.github.com> 2024-10-04 16:21:03 +0700
committerGravatar GitHub <noreply@github.com> 2024-10-04 11:21:03 +0200
commitf47b347da899c6e1dcd0b2e7887f7fce6ec8e270 (patch)
tree98b3af845f3fd5ba8b5905f49d539e7a4ac07d0e /packages/upgrade/test/utils.js
parent657d1973719e20470c3934d086b971e474fee3c6 (diff)
downloadastro-f47b347da899c6e1dcd0b2e7887f7fce6ec8e270.tar.gz
astro-f47b347da899c6e1dcd0b2e7887f7fce6ec8e270.tar.zst
astro-f47b347da899c6e1dcd0b2e7887f7fce6ec8e270.zip
chore(deps): replace strip-ansi with native module (#12118)
* chore(deps): replace strip-ansi with native module * chore: changeset --------- Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
Diffstat (limited to 'packages/upgrade/test/utils.js')
-rw-r--r--packages/upgrade/test/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/upgrade/test/utils.js b/packages/upgrade/test/utils.js
index 8b80bc2e5..20063ec53 100644
--- a/packages/upgrade/test/utils.js
+++ b/packages/upgrade/test/utils.js
@@ -1,5 +1,5 @@
import { before, beforeEach } from 'node:test';
-import stripAnsi from 'strip-ansi';
+import { stripVTControlCharacters } from 'node:util';
import { setStdout } from '../dist/index.js';
export function setup() {
@@ -8,7 +8,7 @@ export function setup() {
setStdout(
Object.assign({}, process.stdout, {
write(buf) {
- ctx.messages.push(stripAnsi(String(buf)).trim());
+ ctx.messages.push(stripVTControlCharacters(String(buf)).trim());
return true;
},
}),