diff --git a/.yarn/cache/@types-chai-npm-4.3.19-6ae19a8f2e-abd4d32397.zip b/.yarn/cache/@types-chai-npm-4.3.19-6ae19a8f2e-abd4d32397.zip deleted file mode 100644 index 9fd26e56..00000000 Binary files a/.yarn/cache/@types-chai-npm-4.3.19-6ae19a8f2e-abd4d32397.zip and /dev/null differ diff --git a/.yarn/cache/@types-copyfiles-npm-2.4.4-ac49085aed-0513199240.zip b/.yarn/cache/@types-copyfiles-npm-2.4.4-ac49085aed-0513199240.zip deleted file mode 100644 index 88ac6b81..00000000 Binary files a/.yarn/cache/@types-copyfiles-npm-2.4.4-ac49085aed-0513199240.zip and /dev/null differ diff --git a/.yarn/cache/@types-mocha-npm-10.0.7-4c49cc0a40-5e411ed8aa.zip b/.yarn/cache/@types-mocha-npm-10.0.7-4c49cc0a40-5e411ed8aa.zip deleted file mode 100644 index 6601624f..00000000 Binary files a/.yarn/cache/@types-mocha-npm-10.0.7-4c49cc0a40-5e411ed8aa.zip and /dev/null differ diff --git a/.yarn/cache/decamelize-npm-6.0.0-109b08ac0a-0066bc3079.zip b/.yarn/cache/decamelize-npm-6.0.0-109b08ac0a-0066bc3079.zip deleted file mode 100644 index f829d061..00000000 Binary files a/.yarn/cache/decamelize-npm-6.0.0-109b08ac0a-0066bc3079.zip and /dev/null differ diff --git a/.yarn/cache/humanize-string-npm-3.0.0-6852006b24-af88f94d6d.zip b/.yarn/cache/humanize-string-npm-3.0.0-6852006b24-af88f94d6d.zip deleted file mode 100644 index 01957e91..00000000 Binary files a/.yarn/cache/humanize-string-npm-3.0.0-6852006b24-af88f94d6d.zip and /dev/null differ diff --git a/package.json b/package.json index bb57c7ff..eeeb1e8a 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "axios-retry": "^4.0.0", "chalk": "^5.3.0", "date-fns": "^3.2.0", - "humanize-string": "^3.0.0", "ink": "^5.0.1", "ink-link": "^4.0.0", "ink-text-input": "^6.0.0", @@ -74,12 +73,9 @@ "devDependencies": { "@jest/globals": "^29.7.0", "@oclif/test": "^4.0.4", - "@types/chai": "^4.3.16", "@types/chalk": "^2.2.0", - "@types/copyfiles": "^2.4.1", "@types/js-yaml": "^4.0.9", "@types/marked-terminal": "^3.1.3", - "@types/mocha": "^10.0.7", "@types/node": "^20.3.3", "@types/parse-duration": "^0.3.0", "@types/pretty-bytes": "^5.2.0", @@ -107,7 +103,6 @@ "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "tsx": "^4.7.1", - "type-fest": "^4.6.0", "typescript": "^5.1.6" }, "oclif": { diff --git a/src/commands/conversation/show.test.ts b/src/commands/conversation/show.test.ts index 8841769b..f292efbc 100644 --- a/src/commands/conversation/show.test.ts +++ b/src/commands/conversation/show.test.ts @@ -1,7 +1,7 @@ import { runCommand } from "@oclif/test"; import { MittwaldAPIV2 } from "@mittwald/api-client"; import nock from "nock"; -import { expect } from "@jest/globals"; +import { afterEach, beforeEach, describe, expect, it } from "@jest/globals"; type Conversation = MittwaldAPIV2.Components.Schemas.ConversationConversation; type Message = MittwaldAPIV2.Components.Schemas.ConversationMessage; diff --git a/src/commands/database/mysql/create.test.ts b/src/commands/database/mysql/create.test.ts index e59f4c4b..0f9d8128 100644 --- a/src/commands/database/mysql/create.test.ts +++ b/src/commands/database/mysql/create.test.ts @@ -1,6 +1,6 @@ import nock from "nock"; import { runCommand } from "@oclif/test"; -import { expect } from "@jest/globals"; +import { afterEach, beforeEach, describe, expect, it } from "@jest/globals"; describe("database:mysql:create", () => { const projectId = "339d6458-839f-4809-a03d-78700069690c"; diff --git a/src/rendering/formatter/Table.test.ts b/src/rendering/formatter/Table.test.ts index f521b2b5..55bd2dfa 100644 --- a/src/rendering/formatter/Table.test.ts +++ b/src/rendering/formatter/Table.test.ts @@ -1,5 +1,5 @@ import Table from "./Table.js"; -import { expect } from "@jest/globals"; +import { describe, expect, it } from "@jest/globals"; import TableColumnRenderer from "./TableColumnRenderer.js"; function effectiveStringLength(str: string) { diff --git a/src/rendering/formatter/smartTruncate.test.ts b/src/rendering/formatter/smartTruncate.test.ts index 4986a4db..7263d2e3 100644 --- a/src/rendering/formatter/smartTruncate.test.ts +++ b/src/rendering/formatter/smartTruncate.test.ts @@ -1,5 +1,5 @@ import smartTruncate from "./smartTruncate.js"; -import { expect } from "@jest/globals"; +import { expect, describe, it } from "@jest/globals"; describe("smartTruncate", () => { it("leaves short strings as is", () => { diff --git a/tsconfig.json b/tsconfig.json index 846f28e7..28859a32 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "outDir": "./dist", "rootDir": "./src", - "types": ["node", "mocha"], + "types": ["node"], "esModuleInterop": true, "jsx": "react-jsx", "baseUrl": ".", diff --git a/yarn.lock b/yarn.lock index ccf326aa..5ecbf425 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2211,12 +2211,9 @@ __metadata: "@oclif/plugin-update": ^4.1.3 "@oclif/plugin-warn-if-update-available": ^3.0.2 "@oclif/test": ^4.0.4 - "@types/chai": ^4.3.16 "@types/chalk": ^2.2.0 - "@types/copyfiles": ^2.4.1 "@types/js-yaml": ^4.0.9 "@types/marked-terminal": ^3.1.3 - "@types/mocha": ^10.0.7 "@types/node": ^20.3.3 "@types/parse-duration": ^0.3.0 "@types/pretty-bytes": ^5.2.0 @@ -2235,7 +2232,6 @@ __metadata: eslint-plugin-json: ^4.0.0 eslint-plugin-prettier: ^5.1.3 globals: ^15.9.0 - humanize-string: ^3.0.0 ink: ^5.0.1 ink-link: ^4.0.0 ink-text-input: ^6.0.0 @@ -2264,7 +2260,6 @@ __metadata: ts-jest: ^29.2.5 ts-node: ^10.9.2 tsx: ^4.7.1 - type-fest: ^4.6.0 typescript: ^5.1.6 uuid: ^10.0.0 bin: @@ -3265,13 +3260,6 @@ __metadata: languageName: node linkType: hard -"@types/chai@npm:^4.3.16": - version: 4.3.19 - resolution: "@types/chai@npm:4.3.19" - checksum: abd4d3239735054f3b6e8163e45bc6495f66469729fbcf4784c9f2b82361a6845d45ab9c518818c78eafa46d015e3a72306e9949d1333e10d7eaedf426af4261 - languageName: node - linkType: hard - "@types/chalk@npm:^2.2.0": version: 2.2.0 resolution: "@types/chalk@npm:2.2.0" @@ -3281,13 +3269,6 @@ __metadata: languageName: node linkType: hard -"@types/copyfiles@npm:^2.4.1": - version: 2.4.4 - resolution: "@types/copyfiles@npm:2.4.4" - checksum: 0513199240828feda5f6ed04c69d6a642c47e6ab66b81214716807f948ed3e865e9b3d2b69f75cbcc6fbe2154630755c47ca473b3913f0a831179366c709a8cc - languageName: node - linkType: hard - "@types/debug@npm:^4.0.0": version: 4.1.8 resolution: "@types/debug@npm:4.1.8" @@ -3394,13 +3375,6 @@ __metadata: languageName: node linkType: hard -"@types/mocha@npm:^10.0.7": - version: 10.0.7 - resolution: "@types/mocha@npm:10.0.7" - checksum: 5e411ed8aa19228e322b2fb0075c4d822322fb157d1adfc8620a798748035d430dc16421bdc7d7f84f118481b8c8c63ec86b95757a8acc926ddc3d737fbffc3a - languageName: node - linkType: hard - "@types/ms@npm:*": version: 0.7.31 resolution: "@types/ms@npm:0.7.31" @@ -5084,13 +5058,6 @@ __metadata: languageName: node linkType: hard -"decamelize@npm:^6.0.0": - version: 6.0.0 - resolution: "decamelize@npm:6.0.0" - checksum: 0066bc30798ec11e01adf0c19ad975caef86545d4bb6f70cfb90b7eb8e3cbf7974cf774ac2e6ea2586e4e07b1f654bfecc4e772c42128a79a89f8584fc546753 - languageName: node - linkType: hard - "decode-named-character-reference@npm:^1.0.0": version: 1.0.2 resolution: "decode-named-character-reference@npm:1.0.2" @@ -6692,15 +6659,6 @@ __metadata: languageName: node linkType: hard -"humanize-string@npm:^3.0.0": - version: 3.0.0 - resolution: "humanize-string@npm:3.0.0" - dependencies: - decamelize: ^6.0.0 - checksum: af88f94d6d5642a9d516a59f7c35f9bcdd6993710b7ff41be4e1564d413137afc1d084bb24741fe8a32584c7892f3ab28abbcbe606d0c060a77d6bb9a33469f6 - languageName: node - linkType: hard - "iconv-lite@npm:^0.6.2": version: 0.6.3 resolution: "iconv-lite@npm:0.6.3" @@ -10670,7 +10628,7 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^4.18.2, type-fest@npm:^4.23.0, type-fest@npm:^4.6.0, type-fest@npm:^4.8.3": +"type-fest@npm:^4.18.2, type-fest@npm:^4.23.0, type-fest@npm:^4.8.3": version: 4.26.0 resolution: "type-fest@npm:4.26.0" checksum: f8073dc59a4a5bd897eecb3dfbf9d7716031fc161062ef572c402252a0375cc692c9ae1f50c75c80722964f1eda4011d1edbab36af63a130a53b3c1aab4ed1c5