fix the dang integration tests
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 24m23s

This commit is contained in:
2026-01-07 01:42:37 -08:00
parent cc4c8e2839
commit 7867abc5bc
7 changed files with 54 additions and 35 deletions

View File

@@ -74,10 +74,7 @@ describe('Recipe API Routes Integration Tests', () => {
});
});
// Placeholder for future tests
// Skipping this test as the POST /api/recipes endpoint for creation does not appear to be implemented.
// The test currently fails with a 404 Not Found.
it.skip('should allow an authenticated user to create a new recipe', async () => {
it('should allow an authenticated user to create a new recipe', async () => {
const newRecipeData = {
name: 'My New Awesome Recipe',
instructions: '1. Be awesome. 2. Make recipe.',
@@ -85,7 +82,7 @@ describe('Recipe API Routes Integration Tests', () => {
};
const response = await request
.post('/api/recipes') // This endpoint does not exist, causing a 404.
.post('/api/users/recipes')
.set('Authorization', `Bearer ${authToken}`)
.send(newRecipeData);