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');
+10 -10
View File
@@ -132,7 +132,7 @@ export const WIZARD_BRANCH_RECIPES: FabricatorRecipe[] = [
id: 'aetherRobe',
name: 'Aetherweave Robe',
description: 'A robe woven from Aether Weave. Shimmers with latent air and light mana. Exceptional enchanting potential.',
manaType: 'air',
manaType: 'crystal',
equipmentTypeId: 'arcanistRobe',
slot: 'body',
materials: { aetherWeave: 3, manaCrystalDust: 15, crystalShard: 8, elementalCore: 4 },
@@ -143,25 +143,25 @@ export const WIZARD_BRANCH_RECIPES: FabricatorRecipe[] = [
bonusEnchantments: [
{ effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
{ effectId: 'mana_regen_5', stacks: 1, actualCost: 50 },
{ effectId: 'air_cap_10', stacks: 1, actualCost: 30 },
{ effectId: 'light_cap_10', stacks: 1, actualCost: 30 },
{ effectId: 'crystal_cap_10', stacks: 1, actualCost: 30 },
{ effectId: 'crystal_cap_10', stacks: 1, actualCost: 30 },
],
},
{
id: 'aetherCirclet',
name: 'Aetherweave Circlet',
description: 'A circlet infused with Aether Weave. Sharpens focus and amplifies arcane power.',
manaType: 'light',
manaType: 'crystal',
equipmentTypeId: 'arcanistCirclet',
slot: 'head',
materials: { aetherWeave: 2, manaCrystalDust: 10, lightCrystal: 3, elementalCore: 3 },
manaCost: 900,
craftTime: 10,
rarity: 'epic',
gearTrait: '+30% Enchantment Power, +25 Light Mana Capacity',
gearTrait: '+30% Enchantment Power, +25 Crystal Mana Capacity',
bonusEnchantments: [
{ effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
{ effectId: 'light_cap_10', stacks: 1, actualCost: 30 },
{ effectId: 'crystal_cap_10', stacks: 1, actualCost: 30 },
],
},
@@ -170,7 +170,7 @@ export const WIZARD_BRANCH_RECIPES: FabricatorRecipe[] = [
id: 'voidRobe',
name: 'Voidweave Robe',
description: 'A robe stitched from Void Cloth. Seems to absorb light and sound. Perfect for dark arcana.',
manaType: 'dark',
manaType: 'sand',
equipmentTypeId: 'arcanistRobe',
slot: 'body',
materials: { voidCloth: 3, manaCrystalDust: 15, crystalShard: 8, voidEssence: 3 },
@@ -181,14 +181,14 @@ export const WIZARD_BRANCH_RECIPES: FabricatorRecipe[] = [
bonusEnchantments: [
{ effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
{ effectId: 'damage_10', stacks: 1, actualCost: 28 },
{ effectId: 'dark_cap_10', stacks: 1, actualCost: 30 },
{ effectId: 'sand_cap_10', stacks: 1, actualCost: 30 },
],
},
{
id: 'voidCowl',
name: 'Voidweave Cowl',
description: 'A deep cowl made from Void Cloth. Shields the wearer from detection.',
manaType: 'dark',
manaType: 'sand',
equipmentTypeId: 'arcanistCirclet',
slot: 'head',
materials: { voidCloth: 2, manaCrystalDust: 10, darkCrystal: 3, voidEssence: 2 },
@@ -197,7 +197,7 @@ export const WIZARD_BRANCH_RECIPES: FabricatorRecipe[] = [
rarity: 'epic',
gearTrait: '+25% Dark Enchantment Power, +15% Evasion',
bonusEnchantments: [
{ effectId: 'dark_cap_10', stacks: 1, actualCost: 30 },
{ effectId: 'sand_cap_10', stacks: 1, actualCost: 30 },
{ effectId: 'mana_cap_50', stacks: 1, actualCost: 20 },
],
},