Skip to content

Commit a37c254

Browse files
committed
fix(api): fix typecheck errors in mock integrations test
1 parent f7a1f1d commit a37c254

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

app/api/student/resume/upload/route.mock-integrations.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ describe('API Route: Student Resume Upload (Mock Integrations)', () => {
5252

5353
it('1. should test service loading paths to ensure successful parsing returns 200 (mock success)', async () => {
5454
// Arrange: Mock the async service to succeed
55-
const mockParsedData = { name: 'Priyanuj', skills: ['React', 'Next.js'] };
55+
const mockParsedData = {
56+
name: 'Priyanuj',
57+
email: 'test@example.com',
58+
phone: '1234567890',
59+
skills: ['React', 'Next.js'],
60+
education: [],
61+
experience: []
62+
};
5663
vi.mocked(parseResume).mockResolvedValueOnce(mockParsedData);
5764

5865
const req = createMockRequest();

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/achievements.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ export type AchievementTier = 'bronze' | 'silver' | 'gold' | 'platinum' | 'diamo
33
export type AchievementRarity = 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary' | 'mythic';
44

55
export type AchievementCategory =
6-
| 'contribution'
7-
| 'pull-request'
8-
| 'repository'
9-
| 'collaboration'
10-
| 'technology';
6+
'contribution' | 'pull-request' | 'repository' | 'collaboration' | 'technology';
117

128
export interface AchievementLevelDef {
139
tier: AchievementTier;

0 commit comments

Comments
 (0)