Skip to content

Commit a63a23f

Browse files
committed
fix(test): remove unused beforeEach imports to satisfy ESLint no-unused-vars
The games and discord controller test files imported beforeEach from vitest but never called it. TypeScript-ESLint's no-unused-vars rule treats unused named imports as errors in this project's flat config. https://claude.ai/code/session_013coUXcACPpVfmbK9i2D86Z
1 parent 71499ad commit a63a23f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/packages/server/src/controllers/discord.controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'reflect-metadata';
2-
import { describe, it, expect, vi, beforeEach } from 'vitest';
2+
import { describe, it, expect, vi } from 'vitest';
33
import { BadRequestException } from '@nestjs/common';
44
import { DiscordController } from './discord.controller.js';
55
import type { DiscordConfigService, DiscordAction } from '../services/DiscordConfigService.js';

app/packages/server/src/controllers/games.controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'reflect-metadata';
2-
import { describe, it, expect, vi, beforeEach } from 'vitest';
2+
import { describe, it, expect, vi } from 'vitest';
33
import { GamesController } from './games.controller.js';
44
import type { ConfigService, TfOutputs } from '../services/ConfigService.js';
55
import type { EcsService } from '../services/EcsService.js';

0 commit comments

Comments
 (0)