Runner.tsConfigPath Method

Enables TestCafe to use a custom TypeScript configuration file and specifies its location.

async tsConfigPath(path) → this
Parameter Type Description
path String The absolute or relative path to the TypeScript configuration file. Relative paths are resolved against the current directory (the directory from which you run TestCafe).
runner.tsConfigPath('/Users/s.johnson/testcafe/tsconfig.json');

Related configuration file property: tsConfigPath