summaryrefslogtreecommitdiff
path: root/packages/create-astro/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/create-astro/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/create-astro/test/utils.js')
-rw-r--r--packages/create-astro/test/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/create-astro/test/utils.js b/packages/create-astro/test/utils.js
index 5412c8cab..dfae93c33 100644
--- a/packages/create-astro/test/utils.js
+++ b/packages/create-astro/test/utils.js
@@ -1,6 +1,6 @@
import fs from 'node:fs';
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() {
@@ -9,7 +9,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;
},
}),