chore: add test runner to pre-commit hook with failure-only output
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m58s

This commit is contained in:
2026-05-31 01:42:34 +02:00
parent 6793461a9f
commit 2432f807be
8 changed files with 53 additions and 16 deletions
+2 -1
View File
@@ -4,10 +4,11 @@ import { describe, it, expect } from 'vitest';
describe('CraftingTab module structure', () => {
it('exports CraftingTab from its module', async () => {
// Allow extra time for the heavy component import (FabricatorSubTab/EnchanterSubTab)
const mod = await import('./CraftingTab');
expect(mod.CraftingTab).toBeDefined();
expect(typeof mod.CraftingTab).toBe('function');
});
}, 30000);
it('CraftingTab has correct displayName', async () => {
const { CraftingTab } = await import('./CraftingTab');
@@ -7,7 +7,7 @@ describe('EquipmentTab module structure', () => {
const mod = await import('./EquipmentTab');
expect(mod.EquipmentTab).toBeDefined();
expect(typeof mod.EquipmentTab).toBe('function');
});
}, 30000);
it('EquipmentTab has correct displayName', async () => {
const { EquipmentTab } = await import('./EquipmentTab');