mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 10:52:17 +02:00
Clean mocks
This commit is contained in:
parent
b9d1500375
commit
8706b816ae
@ -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: () => "",
|
||||
}));
|
||||
});
|
||||
|
||||
|
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user