Support typed configuration via an `ava.config.ts` file
- Dominant language
- JavaScript
- Stars
- 76
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
It'd be useful if we could use TypeScript to define our Ava configurations via an `ava.config.ts` file.
Ideally, we'd be able to structure them like so:
```ts
// Importable `Configuration` type
import { Configuration } from 'ava';
// Typed configuration object
const configuration: Configuration = {
// ... config goes here
};
export default configuration;
```
Webpack supports similar functionality with `webpack.config.ts` files (although I believe `ts-node` is required for those).
Contributor guide
Research direction
The issue names ava.config.ts and compares it with webpack.config.ts, but no repository files or tests are identified. Start by locating the existing AVA configuration-loading entry point and TypeScript configuration declarations, then check how ts-node is handled; done means a typed ava.config.ts can be loaded and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100