Rstest core
Rstest offers these core methods.
defineConfig
This function helps you to autocomplete configuration types. It accepts a Rstest config object, or a function that returns a config.
- Type:
- Example:
defineProject
This function helps you to autocomplete configuration types for Rstest Project. It accepts a Rstest project config object, or a function that returns a config.
- Type:
- Example:
mergeRstestConfig
Merge multiple Rstest config objects into a single config. It deeply merges each configuration object, automatically combining multiple function values into an array of sequentially executed functions, and returns a merged configuration object.
- Type:
- Example:
mergeProjectConfig
Merge multiple Project config objects into a single config.
- Type:
- Example:
loadConfig
Load Rstest configuration.
- Type:
- Example:
If the Rstest config file does not exist in the cwd directory, the return value of the loadConfig method is { content: {}, filePath: null }.