(theme: Theme | ThemeDefinition | undefined)
| 123 | } |
| 124 | |
| 125 | function normalizeTheme(theme: Theme | ThemeDefinition | undefined): Theme { |
| 126 | if (theme === undefined) return coreDefaultTheme; |
| 127 | return "definition" in theme ? theme : compileTheme(theme); |
| 128 | } |
| 129 | |
| 130 | const EMPTY_PROPS: TestNodeProps = Object.freeze({}); |
| 131 | const EMPTY_PATH: readonly number[] = Object.freeze([]); |
no test coverage detected