- Simplified loadPersistedVocabularyData() to use only VocabularyProgressManager - Updated calculateVocabularyProgress() to use unified data structure - Removed old system references from knowledge panel data loading - Fixed field names (drsDiscovered, drsMastered) for unified system - Knowledge panel now displays vocabulary progress correctly ✅ TESTED: Vocabulary Knowledge panel working with unified system 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
943 B
JavaScript
26 lines
943 B
JavaScript
import { runAllTests } from './src/testing/runTests.js';
|
|
|
|
async function analyzeFailures() {
|
|
console.log('Running test suite...');
|
|
const results = await runAllTests();
|
|
|
|
console.log('\n=== DETAILED FAILURE ANALYSIS ===');
|
|
|
|
results.suites.forEach(suite => {
|
|
if (!suite.success && suite.result && suite.result.details) {
|
|
console.log(`\n${suite.suiteName}:`);
|
|
suite.result.details
|
|
.filter(test => test.state === 'failed')
|
|
.forEach(test => {
|
|
console.log(` ❌ ${test.name}`);
|
|
console.log(` Error: ${test.error?.message || 'Unknown'}`);
|
|
if (test.error?.stack) {
|
|
const stackLine = test.error.stack.split('\n')[0];
|
|
console.log(` Stack: ${stackLine}`);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
analyzeFailures().catch(console.error); |