diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1dfd67af0..27c5ff8c1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -519,9 +519,6 @@ importers: path-serializer: specifier: 0.5.1 version: 0.5.1 - strip-ansi: - specifier: ^7.1.2 - version: 7.1.2 test-helper: specifier: workspace:* version: link:scripts diff --git a/tests/integration/auto-external/index.test.ts b/tests/integration/auto-external/index.test.ts index 5feb41789..83ae28386 100644 --- a/tests/integration/auto-external/index.test.ts +++ b/tests/integration/auto-external/index.test.ts @@ -1,6 +1,6 @@ import { join } from 'node:path'; +import { stripVTControlCharacters as stripAnsi } from 'node:util'; import { expect, test } from '@rstest/core'; -import stripAnsi from 'strip-ansi'; import { buildAndGetResults, proxyConsole } from 'test-helper'; import { composeModuleImportWarn } from '../../../packages/core/src/config'; diff --git a/tests/integration/config-check/index.test.ts b/tests/integration/config-check/index.test.ts index c1b58a2d1..831edc2a7 100644 --- a/tests/integration/config-check/index.test.ts +++ b/tests/integration/config-check/index.test.ts @@ -1,6 +1,6 @@ import { join } from 'node:path'; +import { stripVTControlCharacters as stripAnsi } from 'node:util'; import { expect, test } from '@rstest/core'; -import stripAnsi from 'strip-ansi'; import { buildAndGetResults } from 'test-helper'; test('should throw error when lib array not exists or empty', async () => { diff --git a/tests/integration/dts-tsgo/bundleFalse.test.ts b/tests/integration/dts-tsgo/bundleFalse.test.ts index 16738b0ab..22e762dcf 100644 --- a/tests/integration/dts-tsgo/bundleFalse.test.ts +++ b/tests/integration/dts-tsgo/bundleFalse.test.ts @@ -1,8 +1,8 @@ import { spawnSync } from 'node:child_process'; import { existsSync } from 'node:fs'; import { join } from 'node:path'; +import { stripVTControlCharacters as stripAnsi } from 'node:util'; import { describe, expect, test } from '@rstest/core'; -import stripAnsi from 'strip-ansi'; import { buildAndGetResults, createTempFiles, diff --git a/tests/integration/dts/index.test.ts b/tests/integration/dts/index.test.ts index 1db5a0e23..89e6cd7df 100644 --- a/tests/integration/dts/index.test.ts +++ b/tests/integration/dts/index.test.ts @@ -1,8 +1,8 @@ import { spawnSync } from 'node:child_process'; import { existsSync } from 'node:fs'; import { join, normalize } from 'node:path'; +import { stripVTControlCharacters as stripAnsi } from 'node:util'; import { describe, expect, test } from '@rstest/core'; -import stripAnsi from 'strip-ansi'; import { buildAndGetResults, createTempFiles, diff --git a/tests/integration/entry/index.test.ts b/tests/integration/entry/index.test.ts index 0a883450a..b1102b8ca 100644 --- a/tests/integration/entry/index.test.ts +++ b/tests/integration/entry/index.test.ts @@ -1,6 +1,6 @@ import path, { join } from 'node:path'; +import { stripVTControlCharacters as stripAnsi } from 'node:util'; import { expect, test } from '@rstest/core'; -import stripAnsi from 'strip-ansi'; import { buildAndGetResults, proxyConsole, queryContent } from 'test-helper'; test('default entry', async () => { diff --git a/tests/integration/external-helpers/index.test.ts b/tests/integration/external-helpers/index.test.ts index 575068bff..062298981 100644 --- a/tests/integration/external-helpers/index.test.ts +++ b/tests/integration/external-helpers/index.test.ts @@ -1,6 +1,6 @@ import { join } from 'node:path'; +import { stripVTControlCharacters as stripAnsi } from 'node:util'; import { expect, test } from '@rstest/core'; -import stripAnsi from 'strip-ansi'; import { buildAndGetResults, proxyConsole } from 'test-helper'; test('should not external @swc/helpers by default', async () => { diff --git a/tests/integration/externals/index.test.ts b/tests/integration/externals/index.test.ts index 4af833e31..8ac0d4d37 100644 --- a/tests/integration/externals/index.test.ts +++ b/tests/integration/externals/index.test.ts @@ -1,6 +1,6 @@ import { join } from 'node:path'; +import { stripVTControlCharacters as stripAnsi } from 'node:util'; import { expect, test } from '@rstest/core'; -import stripAnsi from 'strip-ansi'; import { buildAndGetResults, proxyConsole, queryContent } from 'test-helper'; import { composeModuleImportWarn } from '../../../packages/core/src/config'; diff --git a/tests/package.json b/tests/package.json index c1cda9409..2ffb93c93 100644 --- a/tests/package.json +++ b/tests/package.json @@ -31,7 +31,6 @@ "@types/react-dom": "^19.1.9", "fs-extra": "^11.3.2", "path-serializer": "0.5.1", - "strip-ansi": "^7.1.2", "test-helper": "workspace:*", "tinyglobby": "^0.2.15" }