fix(tests): remove broken test index files and fix computed-stats import
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m24s

This commit is contained in:
2026-05-19 12:34:58 +02:00
parent e259484b53
commit 213425e6c9
7 changed files with 12 additions and 70 deletions
+4 -7
View File
@@ -2,6 +2,7 @@ import { describe, it, expect } from 'vitest';
import { calculateEffectCapacityCost, ENCHANTMENT_EFFECTS } from '../data/enchantment-effects';
import { EQUIPMENT_TYPES } from '../data/equipment';
import { ATTUNEMENTS_DEF, getAttunementConversionRate } from '../data/attunements';
import { getFloorMaxHP } from '../utils';
describe('Enchantment Capacity Validation', () => {
it('should calculate capacity cost for single stack effects', () => {
@@ -82,23 +83,19 @@ describe('Attunement Mana Type Unlocking', () => {
});
describe('Floor HP State', () => {
it('should have getFloorMaxHP function that returns positive values', async () => {
const { getFloorMaxHP } = await import('../computed-stats');
it('should have getFloorMaxHP function that returns positive values', () => {
for (let floor = 1; floor <= 100; floor++) {
const hp = getFloorMaxHP(floor);
expect(hp).toBeGreaterThan(0);
}
});
it('should scale HP correctly with floor progression', async () => {
const { getFloorMaxHP } = await import('../computed-stats');
it('should scale HP correctly with floor progression', () => {
const hp1 = getFloorMaxHP(1);
const hp10 = getFloorMaxHP(10);
const hp50 = getFloorMaxHP(50);
const hp100 = getFloorMaxHP(100);
expect(hp10).toBeGreaterThan(hp1);
expect(hp50).toBeGreaterThan(hp10);
expect(hp100).toBeGreaterThan(hp50);