mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 19:02:16 +02:00
Clean mocks
This commit is contained in:
parent
b9d1500375
commit
8706b816ae
@ -8,22 +8,12 @@ describe("trainer-config", () => {
|
|||||||
let trainerConfig: TrainerConfig;
|
let trainerConfig: TrainerConfig;
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
// Error when importing biomes / voucher (imported by different files)
|
// Prevent errors
|
||||||
vi.mock('./biomes', () => ({
|
vi.mock('./biomes', () => ({}));
|
||||||
biomeLinks: {},
|
|
||||||
BiomePoolTier: {},
|
|
||||||
PokemonPools: {},
|
|
||||||
getBiomeName: () => "",
|
|
||||||
BiomeTierTrainerPools: {},
|
|
||||||
biomePokemonPools: {},
|
|
||||||
biomeTrainerPools: {},
|
|
||||||
}));
|
|
||||||
vi.mock('../system/voucher', () => ({
|
vi.mock('../system/voucher', () => ({
|
||||||
vouchers: {},
|
|
||||||
VoucherType: {},
|
VoucherType: {},
|
||||||
getVoucherTypeIcon: () => "",
|
|
||||||
Voucher: {},
|
|
||||||
getVoucherTypeName: () => "",
|
getVoucherTypeName: () => "",
|
||||||
|
getVoucherTypeIcon: () => "",
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -4,16 +4,8 @@ import { GameDataType, getDataTypeKey } from "./game-data";
|
|||||||
describe("game-data", () => {
|
describe("game-data", () => {
|
||||||
describe("getDataTypeKey", () => {
|
describe("getDataTypeKey", () => {
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
// Error when importing biomes (imported by different files)
|
// Prevent errors
|
||||||
vi.mock('../data/biomes', () => ({
|
vi.mock('../data/biomes', () => ({}));
|
||||||
biomeLinks: {},
|
|
||||||
BiomePoolTier: {},
|
|
||||||
PokemonPools: {},
|
|
||||||
getBiomeName: () => "",
|
|
||||||
BiomeTierTrainerPools: {},
|
|
||||||
biomePokemonPools: {},
|
|
||||||
biomeTrainerPools: {},
|
|
||||||
}));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(() => {
|
afterAll(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user