(page: Page, theme: 'light' | 'dark')
| 24 | export const BASE_URL = 'http://localhost:5555'; |
| 25 | export const API_BASE_URL = 'http://localhost:8080'; |
| 26 | |
| 27 | export async function forceTheme(page: Page, theme: 'light' | 'dark') { |
| 28 | await page.addInitScript(theme => { |
| 29 | localStorage.setItem('webstatus-theme', theme); |
| 30 | }, theme); |
| 31 | await page.emulateMedia({colorScheme: theme}); |
| 32 | } |
| 33 | |
| 34 | /** |
no outgoing calls
no test coverage detected