fix(RECIPE-0008): complete iteration 1 — resolve all TypeScript strict mode errors
This commit is contained in:
@@ -12,7 +12,7 @@ import { queueManager } from '$lib/server/queue/QueueManager';
|
||||
vi.mock('web-push', () => ({
|
||||
default: {
|
||||
setVapidDetails: vi.fn(),
|
||||
sendNotification: vi.fn().mockResolvedValue({} as any)
|
||||
sendNotification: vi.fn().mockResolvedValue(undefined)
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -85,7 +85,8 @@ describe('QueueProcessor Integration Tests', () => {
|
||||
|
||||
vi.mocked(extractRecipe).mockResolvedValue({
|
||||
name: 'Default Recipe',
|
||||
ingredients: ['ingredient 1'],
|
||||
servings: 2,
|
||||
ingredients: [{ item: 'ingredient 1', amount: '1', unit: 'piece' }],
|
||||
steps: ['step 1'],
|
||||
description: 'A default recipe'
|
||||
});
|
||||
@@ -114,7 +115,11 @@ describe('QueueProcessor Integration Tests', () => {
|
||||
|
||||
vi.mocked(extractRecipe).mockResolvedValue({
|
||||
name: 'Test Recipe',
|
||||
ingredients: ['flour', 'eggs'],
|
||||
servings: 4,
|
||||
ingredients: [
|
||||
{ item: 'flour', amount: '2', unit: 'cups' },
|
||||
{ item: 'eggs', amount: '2', unit: 'pieces' }
|
||||
],
|
||||
steps: ['mix', 'bake'],
|
||||
description: 'test'
|
||||
});
|
||||
@@ -164,6 +169,7 @@ describe('QueueProcessor Integration Tests', () => {
|
||||
|
||||
vi.mocked(extractRecipe).mockResolvedValue({
|
||||
name: 'No Tandoor Recipe',
|
||||
servings: null,
|
||||
ingredients: [],
|
||||
steps: [],
|
||||
description: ''
|
||||
@@ -228,6 +234,7 @@ describe('QueueProcessor Integration Tests', () => {
|
||||
|
||||
vi.mocked(extractRecipe).mockResolvedValue({
|
||||
name: 'Concurrent Recipe',
|
||||
servings: null,
|
||||
ingredients: [],
|
||||
steps: [],
|
||||
description: ''
|
||||
|
||||
Reference in New Issue
Block a user