diff --git a/src/data/trainer-config.test.ts b/src/data/trainer-config.test.ts index dcacbbc72d5..7e18374d1db 100644 --- a/src/data/trainer-config.test.ts +++ b/src/data/trainer-config.test.ts @@ -8,22 +8,12 @@ describe("trainer-config", () => { let trainerConfig: TrainerConfig; beforeAll(() => { - // Error when importing biomes / voucher (imported by different files) - vi.mock('./biomes', () => ({ - biomeLinks: {}, - BiomePoolTier: {}, - PokemonPools: {}, - getBiomeName: () => "", - BiomeTierTrainerPools: {}, - biomePokemonPools: {}, - biomeTrainerPools: {}, - })); + // Prevent errors + vi.mock('./biomes', () => ({})); vi.mock('../system/voucher', () => ({ - vouchers: {}, VoucherType: {}, - getVoucherTypeIcon: () => "", - Voucher: {}, getVoucherTypeName: () => "", + getVoucherTypeIcon: () => "", })); }); diff --git a/src/system/game-data.test.ts b/src/system/game-data.test.ts index 867da7fd4bf..c6a3c8745cf 100644 --- a/src/system/game-data.test.ts +++ b/src/system/game-data.test.ts @@ -4,16 +4,8 @@ import { GameDataType, getDataTypeKey } from "./game-data"; describe("game-data", () => { describe("getDataTypeKey", () => { beforeAll(() => { - // Error when importing biomes (imported by different files) - vi.mock('../data/biomes', () => ({ - biomeLinks: {}, - BiomePoolTier: {}, - PokemonPools: {}, - getBiomeName: () => "", - BiomeTierTrainerPools: {}, - biomePokemonPools: {}, - biomeTrainerPools: {}, - })); + // Prevent errors + vi.mock('../data/biomes', () => ({})); }); afterAll(() => {