Function: defineTermwrightConfig()
@termwright/test / defineTermwrightConfig
Function: defineTermwrightConfig()
Section titled “Function: defineTermwrightConfig()”defineTermwrightConfig(
config):TermwrightConfig
Defined in: test/src/config.ts:273
Validates a configuration object and returns it unchanged.
Exists for the same reason as Vite’s defineConfig: type inference in a
plain termwright.config.ts, plus eager validation of the values that would
otherwise fail deep inside a test run.
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”Example
Section titled “Example”export default defineTermwrightConfig({ columns: 100, rows: 30, trace: 'retain-on-failure', profiles: { ci: { trace: 'on', palette: XTERM_PALETTE } },});