Skip to content

Commit 4a57c22

Browse files
authored
chore: supersede strip-ansi with stripVTControlCharacters (#1261)
1 parent ff7ac33 commit 4a57c22

File tree

9 files changed

+7
-11
lines changed

9 files changed

+7
-11
lines changed

pnpm-lock.yaml

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

tests/integration/auto-external/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'node:path';
2+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
23
import { expect, test } from '@rstest/core';
3-
import stripAnsi from 'strip-ansi';
44
import { buildAndGetResults, proxyConsole } from 'test-helper';
55

66
import { composeModuleImportWarn } from '../../../packages/core/src/config';

tests/integration/config-check/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'node:path';
2+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
23
import { expect, test } from '@rstest/core';
3-
import stripAnsi from 'strip-ansi';
44
import { buildAndGetResults } from 'test-helper';
55

66
test('should throw error when lib array not exists or empty', async () => {

tests/integration/dts-tsgo/bundleFalse.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { spawnSync } from 'node:child_process';
22
import { existsSync } from 'node:fs';
33
import { join } from 'node:path';
4+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
45
import { describe, expect, test } from '@rstest/core';
5-
import stripAnsi from 'strip-ansi';
66
import {
77
buildAndGetResults,
88
createTempFiles,

tests/integration/dts/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { spawnSync } from 'node:child_process';
22
import { existsSync } from 'node:fs';
33
import { join, normalize } from 'node:path';
4+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
45
import { describe, expect, test } from '@rstest/core';
5-
import stripAnsi from 'strip-ansi';
66
import {
77
buildAndGetResults,
88
createTempFiles,

tests/integration/entry/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path, { join } from 'node:path';
2+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
23
import { expect, test } from '@rstest/core';
3-
import stripAnsi from 'strip-ansi';
44
import { buildAndGetResults, proxyConsole, queryContent } from 'test-helper';
55

66
test('default entry', async () => {

tests/integration/external-helpers/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'node:path';
2+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
23
import { expect, test } from '@rstest/core';
3-
import stripAnsi from 'strip-ansi';
44
import { buildAndGetResults, proxyConsole } from 'test-helper';
55

66
test('should not external @swc/helpers by default', async () => {

tests/integration/externals/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'node:path';
2+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
23
import { expect, test } from '@rstest/core';
3-
import stripAnsi from 'strip-ansi';
44
import { buildAndGetResults, proxyConsole, queryContent } from 'test-helper';
55

66
import { composeModuleImportWarn } from '../../../packages/core/src/config';

tests/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"@types/react-dom": "^19.1.9",
3232
"fs-extra": "^11.3.2",
3333
"path-serializer": "0.5.1",
34-
"strip-ansi": "^7.1.2",
3534
"test-helper": "workspace:*",
3635
"tinyglobby": "^0.2.15"
3736
}

0 commit comments

Comments
 (0)