NativeScript / NativeScript/nativescript-cli
Allow configuring karma with TypeScript: karma.conf.ts
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Is your feature request related to a problem? Please describe.
Allowing the developer to configure karma and be able to type check
Describe the solution you'd like
In the file lib/services/test-execution-service.ts the value for karma config is hardcoded on the line 326. Is it possible to discover the config file in the order similar to the one on the karma website: https://karma-runner.github.io/3.0/config/configuration-file.html ?
Describe alternatives you've considered
Additional context
Here is the location of the code discovering test file in the karma: https://github.com/karma-runner/karma/blob/master/lib/cli.js#L114..L129
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read lib/services/test-execution-service.ts around line 326 and compare its hardcoded Karma configuration choice with Karma's discovery logic in lib/cli.js lines 114-129. Done means the CLI can discover and use a karma.conf.ts configuration so developers can type-check their Karma configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100