From 9a400730f559366f2c5c7eb3ef1354d8a1026d96 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 5 Jan 2025 12:16:25 +0000 Subject: [PATCH] test: Include type checks on builders (#10692) test: include type checks on builders --- packages/builders/__tests__/components/textInput.test.ts | 2 -- .../__tests__/interactions/ContextMenuCommands.test.ts | 8 +------- packages/builders/tsconfig.json | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/builders/__tests__/components/textInput.test.ts b/packages/builders/__tests__/components/textInput.test.ts index 162bd7249..78d52914b 100644 --- a/packages/builders/__tests__/components/textInput.test.ts +++ b/packages/builders/__tests__/components/textInput.test.ts @@ -2,8 +2,6 @@ import { ComponentType, TextInputStyle, type APITextInputComponent } from 'disco import { describe, test, expect } from 'vitest'; import { TextInputBuilder } from '../../src/components/textInput/TextInput.js'; -const superLongStr = 'a'.repeat(5_000); - const textInputComponent = () => new TextInputBuilder(); describe('Text Input Components', () => { diff --git a/packages/builders/__tests__/interactions/ContextMenuCommands.test.ts b/packages/builders/__tests__/interactions/ContextMenuCommands.test.ts index 309babfc5..72df8eba0 100644 --- a/packages/builders/__tests__/interactions/ContextMenuCommands.test.ts +++ b/packages/builders/__tests__/interactions/ContextMenuCommands.test.ts @@ -1,10 +1,4 @@ -import { - ApplicationCommandType, - ApplicationIntegrationType, - InteractionContextType, - Locale, - PermissionFlagsBits, -} from 'discord-api-types/v10'; +import { ApplicationIntegrationType, InteractionContextType, Locale, PermissionFlagsBits } from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; import { MessageContextCommandBuilder } from '../../src/index.js'; diff --git a/packages/builders/tsconfig.json b/packages/builders/tsconfig.json index 36ddfc1c4..1ec6abb4f 100644 --- a/packages/builders/tsconfig.json +++ b/packages/builders/tsconfig.json @@ -5,6 +5,6 @@ "emitDecoratorMetadata": true, "exactOptionalPropertyTypes": false }, - "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.cjs", "src/**/*.mjs", "bin"], + "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.cjs", "src/**/*.mjs", "bin", "__tests__", "../../vitest.d.ts"], "exclude": ["node_modules"] }