|
| 1 | + |
| 2 | + |
| 3 | +> vitest run --coverage --run |
| 4 | + |
| 5 | + |
| 6 | + RUN v3.2.4 /Users/katsumi.sato/WebstormProjects/CommandForgeEditor/frontend |
| 7 | + Coverage enabled with v8 |
| 8 | + |
| 9 | + ❯ src/i18n/translationLoader.test.ts (22 tests | 1 failed) 28ms |
| 10 | + ✓ translationLoader > loadTranslations > should load development translations when not in Tauri environment 3ms |
| 11 | + ✓ translationLoader > loadTranslations > should handle fetch errors in development mode 1ms |
| 12 | + ✓ translationLoader > loadTranslations > should load translations from Tauri filesystem 0ms |
| 13 | + ✓ translationLoader > loadTranslations > should fallback to development mode when commands path not found 0ms |
| 14 | + ✓ translationLoader > loadTranslations > should handle missing i18n directory 0ms |
| 15 | + ✓ translationLoader > loadTranslations > should handle JSON parse errors 0ms |
| 16 | + ✓ translationLoader > loadTranslations > should skip non-existent language files 0ms |
| 17 | + ✓ translationLoader > loadTranslations > should handle development mode even with __TAURI__ present 1ms |
| 18 | + ✓ translationLoader > generateCommandTranslationKeys > should generate basic command translation keys 0ms |
| 19 | + ✓ translationLoader > generateCommandTranslationKeys > should generate property translation keys 1ms |
| 20 | + ✓ translationLoader > generateCommandTranslationKeys > should generate enum translation keys 0ms |
| 21 | + ✓ translationLoader > generateCommandTranslationKeys > should handle commands without properties 2ms |
| 22 | + ✓ translationLoader > getAvailableLanguages > should return available languages from i18n resource store 0ms |
| 23 | + ✓ translationLoader > getAvailableLanguages > should use language code as fallback name 0ms |
| 24 | + ✓ translationLoader > getTranslationWithFallback > should return translation when available 0ms |
| 25 | + ✓ translationLoader > getTranslationWithFallback > should return fallback when translation equals key 0ms |
| 26 | + ✓ translationLoader > getTranslationWithFallback > should return key when no translation and no fallback 0ms |
| 27 | + ✓ translationLoader > getTranslationWithFallback > should handle non-string translations 0ms |
| 28 | + ✓ translationLoader > getTranslationWithFallback > should pass options to i18n.t 0ms |
| 29 | + ✓ translationLoader > getTranslationWithFallback > should return key when translation is non-string and no fallback 0ms |
| 30 | + × translationLoader > loadDevelopmentTranslations error handling > should handle errors when loading development translations 16ms |
| 31 | + → expected "error" to be called with arguments: [ …(2) ][90m |
| 32 | + |
| 33 | +Number of calls: [1m0[22m |
| 34 | +[39m |
| 35 | + ✓ translationLoader > loadTranslations production error handling > should handle general error and fallback to development translations 1ms |
| 36 | + ✓ src/components/dnd/SortableItem.test.tsx (13 tests) 239ms |
| 37 | + ✓ src/components/layout/LanguageSwitcher.test.tsx (12 tests) 412ms |
| 38 | + ✓ src/components/layout/MainLayout.test.tsx (19 tests) 263ms |
| 39 | + ✓ src/App.test.tsx (11 tests | 2 skipped) 449ms |
| 40 | + ✓ src/components/skit/CommandList.test.tsx (21 tests | 1 skipped) 551ms |
| 41 | + ✓ src/components/skit/SkitList.test.tsx (16 tests) 1404ms |
| 42 | + ✓ src/components/skit/Toolbar.test.tsx (20 tests) 1617ms |
| 43 | + ✓ Toolbar > should disable buttons when no skit is selected 373ms |
| 44 | + ✓ src/components/skit/CommandEditor.test.tsx (25 tests) 1563ms |
| 45 | + ✓ CommandEditor > should handle boolean property changes 373ms |
| 46 | + ✓ src/store/skitStore.test.ts (46 tests) 98ms |
| 47 | + ✓ src/main.test.tsx (8 tests | 2 skipped) 191ms |
| 48 | + ✓ src/components/dnd/DraggableCommand.test.tsx (10 tests) 399ms |
| 49 | + ✓ src/components/dnd/DropZone.test.tsx (10 tests) 107ms |
| 50 | + ✓ src/components/skit/ValidationLog.test.tsx (10 tests) 131ms |
| 51 | + ✓ src/components/dnd/DndProvider.test.tsx (13 tests) 46ms |
| 52 | + ✓ src/components/dnd/SortableList.test.tsx (13 tests) 112ms |
| 53 | +stdout | src/utils/fileSystem.test.ts > fileSystem > loadSkits > should create skits directory if not exists |
| 54 | +Created skits directory at /project/skits |
| 55 | + |
| 56 | + ✓ src/hooks/use-mobile.test.tsx (12 tests) 40ms |
| 57 | + ✓ src/utils/fileSystem.test.ts (29 tests) 38ms |
| 58 | + ✓ src/hooks/useKeyboardShortcuts.test.ts (19 tests | 1 skipped) 81ms |
| 59 | + ✓ src/hooks/useToast.test.ts (13 tests) 26ms |
| 60 | + ✓ src/hooks/use-toast.test.ts (20 tests) 36ms |
| 61 | + ✓ src/hooks/useCommandTranslation.test.ts (14 tests) 28ms |
| 62 | + ✓ src/hooks/useDndSortable.test.ts (13 tests) 25ms |
| 63 | + ✓ src/utils/validation.test.ts (22 tests) 49ms |
| 64 | + ✓ src/lib/utils.test.ts (22 tests) 12ms |
| 65 | + ✓ src/i18n/config.test.ts (14 tests) 12ms |
| 66 | + ✓ src/utils/reservedCommands.test.ts (9 tests) 4ms |
| 67 | + ✓ src/utils/devFileSystem.test.ts (10 tests) 7ms |
| 68 | + ✓ src/utils/commandDefaults.test.ts (17 tests) 4ms |
| 69 | + ✓ src/utils/commandFormatting.test.ts (19 tests) 3ms |
| 70 | + |
| 71 | + Test Files 1 failed | 29 passed (30) |
| 72 | + Tests 1 failed | 495 passed | 6 skipped (502) |
| 73 | + Start at 16:27:25 |
| 74 | + Duration 9.72s (transform 2.41s, setup 8.97s, collect 10.80s, tests 7.98s, environment 33.14s, prepare 5.33s) |
| 75 | + |
0 commit comments