fix type warnings

This commit is contained in:
DaKheera47 2026-01-19 19:11:20 +00:00
parent 37708662d3
commit 724257671e
2 changed files with 58 additions and 5 deletions

View File

@ -8,16 +8,65 @@ import type { Job } from '../../shared/types.js';
// We need to mock 'fetch' globally for these tests
const globalFetch = global.fetch;
const now = new Date().toISOString();
// A simple mock job
const mockJob: Job = {
id: 'test-job',
employer: 'Test Corp',
source: 'gradcracker',
sourceJobId: null,
jobUrlDirect: null,
datePosted: null,
title: 'Senior Engineer',
employer: 'Test Corp',
employerUrl: null,
jobUrl: 'http://test.com',
applicationLink: null,
disciplines: null,
deadline: null,
salary: null,
location: null,
degreeRequired: null,
starting: null,
jobDescription: 'Looking for a TypeScript and React expert.',
url: 'http://test.com',
date: '2023-01-01',
source: 'test' as any,
status: 'discovered'
status: 'discovered',
suitabilityScore: null,
suitabilityReason: null,
tailoredSummary: null,
tailoredHeadline: null,
tailoredSkills: null,
selectedProjectIds: null,
pdfPath: null,
notionPageId: null,
jobType: null,
salarySource: null,
salaryInterval: null,
salaryMinAmount: null,
salaryMaxAmount: null,
salaryCurrency: null,
isRemote: null,
jobLevel: null,
jobFunction: null,
listingType: null,
emails: null,
companyIndustry: null,
companyLogo: null,
companyUrlDirect: null,
companyAddresses: null,
companyNumEmployees: null,
companyRevenue: null,
companyDescription: null,
skills: null,
experienceRange: null,
companyRating: null,
companyReviewsCount: null,
vacancyCount: null,
workFromHomeType: null,
discoveredAt: now,
processedAt: null,
appliedAt: null,
createdAt: now,
updatedAt: now,
};
const mockProfile = { name: 'Test User' };

View File

@ -172,6 +172,10 @@ export interface PipelineConfig {
sources: JobSource[]; // Job sources to crawl
profilePath: string; // Path to profile JSON
outputDir: string; // Directory for generated PDFs
enableCrawling?: boolean;
enableScoring?: boolean;
enableImporting?: boolean;
enableAutoTailoring?: boolean;
}
export interface PipelineRun {