generated from wisnia74/openrct2-typescript-mod-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.setup.ts
29 lines (26 loc) · 970 Bytes
/
jest.setup.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* eslint-disable @typescript-eslint/no-empty-function */
import { createMockStaff } from './testUtils';
function mockGetAllEntities(type: EntityType): Entity[];
function mockGetAllEntities(type: 'guest'): Guest[];
function mockGetAllEntities(type: 'staff'): Staff[];
function mockGetAllEntities(type: 'car'): Car[];
function mockGetAllEntities(type: 'litter'): Litter[];
function mockGetAllEntities(): Entity[] {
return [
createMockStaff('handyman'),
createMockStaff('handyman'),
createMockStaff('handyman'),
createMockStaff('handyman'),
createMockStaff('handyman'),
createMockStaff('entertainer'),
createMockStaff('entertainer'),
createMockStaff('entertainer'),
createMockStaff('security'),
createMockStaff('security'),
createMockStaff('mechanic'),
createMockStaff('mechanic'),
createMockStaff('mechanic'),
createMockStaff('mechanic'),
];
}
global.map = { getAllEntities: mockGetAllEntities } as GameMap;