MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / getTheme

Function getTheme

apps/site/tests/e2e/general-behavior.spec.ts:20–23  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

18};
19
20const getTheme = (page: Page) =>
21 page.evaluate(
22 () => document.documentElement.dataset.theme as 'light' | 'dark'
23 );
24
25const openLanguageMenu = async (page: Page) => {
26 const button = page.getByRole('button', {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected