From 2fc99011af9972a1dadbfee93deafa0277fdcd4f Mon Sep 17 00:00:00 2001 From: Daniel Perez Alvarez Date: Sat, 17 Aug 2024 22:32:19 -0400 Subject: [PATCH] chore(deps-dev): remove strip-ansi --- test/package.json | 1 - test/tests/extras.test.ts | 5 ++--- test/yarn.lock | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/test/package.json b/test/package.json index e460c70..c0f30f0 100755 --- a/test/package.json +++ b/test/package.json @@ -15,7 +15,6 @@ "@types/jest": "^29.5.12", "jest": "^29.7.0", "nx": "^15.9.7", - "strip-ansi": "^6.0.1", "ts-expose-internals": "^4.9.5", "ts-jest": "^29.2.4", "ts-node": "^10.9.2", diff --git a/test/tests/extras.test.ts b/test/tests/extras.test.ts index cd326ac..26e26e6 100755 --- a/test/tests/extras.test.ts +++ b/test/tests/extras.test.ts @@ -4,7 +4,6 @@ import path from "path"; import ts from "typescript"; import * as config from "../config"; import { execSync } from "child_process"; -import stripAnsi from "strip-ansi"; /* ****************************************************************************************************************** * * Tests @@ -37,12 +36,12 @@ describe(`Extra Tests`, () => { describe(`ts-node register script`, () => { test(`Works with --transpileOnly`, () => { const res = execSync("yarn g:ts-node --transpileOnly src/index.ts", { cwd: projectRoot }).toString(); - expect(stripAnsi(res)).toMatch(/^null($|\r?\n)/m); + expect(res).toMatch(/^null($|\r?\n)/m); }); test(`Works with --typeCheck`, () => { const res = execSync("yarn g:ts-node --typeCheck src/index.ts", { cwd: projectRoot }).toString(); - expect(stripAnsi(res)).toMatch(/^null($|\r?\n)/); + expect(res).toMatch(/^null($|\r?\n)/); }); }); }); diff --git a/test/yarn.lock b/test/yarn.lock index b605fae..3e4c859 100644 --- a/test/yarn.lock +++ b/test/yarn.lock @@ -8085,7 +8085,6 @@ __metadata: "@types/jest": "npm:^29.5.12" jest: "npm:^29.7.0" nx: "npm:^15.9.7" - strip-ansi: "npm:^6.0.1" ts-expose-internals: "npm:^4.9.5" ts-jest: "npm:^29.2.4" ts-node: "npm:^10.9.2"