Commit fcd3737
test: update embedding backfill mock and BulkAnalyzeButton tests for useAnalysis context
- embedding.test.ts: mock the DB client singleton so backfill integration
tests run against an in-memory DB instead of the real data.db, and seed
the insights table schema needed by the zero-pending-rows case.
- BulkAnalyzeButton.test.tsx: update tests to mock useAnalysis (AnalysisContext)
instead of analyzeSession directly, matching the component's current
state-management approach; adjusts progress-count assertions accordingly.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 4989677 commit fcd3737
2 files changed
Lines changed: 129 additions & 70 deletions
File tree
- cli/src/embeddings/__tests__
- dashboard/src/components/analysis
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
518 | 525 | | |
519 | 526 | | |
520 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
521 | 533 | | |
522 | 534 | | |
523 | 535 | | |
| 536 | + | |
524 | 537 | | |
525 | 538 | | |
526 | 539 | | |
527 | 540 | | |
528 | 541 | | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
529 | 562 | | |
| 563 | + | |
530 | 564 | | |
531 | 565 | | |
532 | 566 | | |
533 | 567 | | |
534 | | - | |
535 | 568 | | |
536 | 569 | | |
0 commit comments