-
Notifications
You must be signed in to change notification settings - Fork 39
fix: hacky fix to get integration tests to work with product reviews … #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,15 @@ const workflowEngineModule = IS_TEST | |
| }, | ||
| }; | ||
|
|
||
| const testModules = IS_TEST | ||
| ? [ | ||
| { | ||
| resolve: '@lambdacurry/medusa-product-reviews/.medusa/server/src/modules/product-review', | ||
| options: {}, | ||
| }, | ||
| ] | ||
| : []; | ||
|
Comment on lines
+38
to
+45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Review the hardcoded local path resolution. The Consider using a more robust resolution strategy or addressing the underlying issue that prevents the standard npm package from working in tests. 🤖 Prompt for AI Agents |
||
|
|
||
| module.exports = defineConfig({ | ||
| projectConfig: { | ||
| databaseUrl: process.env.DATABASE_URL, | ||
|
|
@@ -76,6 +85,7 @@ module.exports = defineConfig({ | |
| cacheModule, | ||
| eventBusModule, | ||
| workflowEngineModule, | ||
| ...testModules, | ||
| ], | ||
| admin: { | ||
| backendUrl: process.env.ADMIN_BACKEND_URL, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Test functionality has been completely removed.
The actual health endpoint test implementation has been replaced with a placeholder log statement. This eliminates test coverage for the
/healthendpoint and makes the test meaningless.This "hacky fix" approach should be temporary. The original test logic should be restored once the underlying compatibility issues with the product reviews module are resolved.
Would you like me to create a tracking issue for restoring this test functionality, or help identify the root cause of why the original test was failing?
🤖 Prompt for AI Agents