-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjest.setup.cjs
32 lines (30 loc) · 920 Bytes
/
jest.setup.cjs
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
30
31
32
// Mock chalk module
jest.mock('chalk', () => ({
default: {
red: (text) => text,
green: (text) => text,
yellow: (text) => text,
blue: (text) => text,
magenta: (text) => text,
cyan: (text) => text,
white: (text) => text,
gray: (text) => text,
grey: (text) => text,
black: (text) => text,
bold: (text) => text,
dim: (text) => text,
italic: (text) => text,
underline: (text) => text,
inverse: (text) => text,
hidden: (text) => text,
strikethrough: (text) => text,
visible: (text) => text,
}
}));
// Mock environment variables
process.env.HASS_URL = 'http://localhost:8123';
process.env.HASS_TOKEN = 'test_token';
process.env.CLAUDE_API_KEY = 'test_api_key';
process.env.CLAUDE_MODEL = 'test_model';
// Global Jest settings
jest.setTimeout(30000); // 30 seconds timeout