Initial commit: Plant Disease Identification app
- Next.js 16 App Router project with Tailwind CSS - Plant disease knowledge base (93 diseases, 25 plants) - Image upload with client+server preprocessing - ML inference pipeline with mock/demo fallback - Responsive results page with disease cards and treatment - Full test suite (285 passing tests)
This commit is contained in:
9
apps/web/src/test/mocks/onnxruntime-node.ts
Normal file
9
apps/web/src/test/mocks/onnxruntime-node.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Mock for onnxruntime-node.
|
||||
* Used during testing when the real package isn't installed.
|
||||
* The model-loader will fall back to mock mode when this import fails.
|
||||
*/
|
||||
|
||||
// This mock throws on load to simulate the package not being available
|
||||
// The model-loader catches this and falls back to mock mode
|
||||
throw new Error("onnxruntime-node not installed");
|
||||
Reference in New Issue
Block a user