NativeScript / NativeScript/nativescript-cli
Allow configuring karma with TypeScript: karma.conf.ts
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Lies lib/services/test-execution-service.ts ungefähr bei Zeile 326 und vergleiche die dort fest codierte Auswahl der Karma-Konfiguration mit der Discovery-Logik von Karma in lib/cli.js in den Zeilen 114–129. Abgeschlossen ist die Aufgabe, wenn die CLI eine karma.conf.ts-Konfiguration entdecken und verwenden kann, damit Entwickler ihre Karma-Konfiguration per Type-Check prüfen können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- cli, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100