Skip to content

feat(browser-test-runner): Support TypeScript karma-setup files#3368

Merged
mondoreale merged 1 commit intomainfrom
support-ts-karma-setup-files
Jan 23, 2026
Merged

feat(browser-test-runner): Support TypeScript karma-setup files#3368
mondoreale merged 1 commit intomainfrom
support-ts-karma-setup-files

Conversation

@mondoreale
Copy link
Copy Markdown
Contributor

Summary

Allow packages to define their Karma setup files in either JavaScript (karma-setup.js) or TypeScript (karma-setup.ts). This provides flexibility for packages that prefer type-safe configuration.

Changes

  • Update createKarmaConfig.ts to check for both karma-setup.js and karma-setup.ts in the local directory
  • Use the first matching file found (JS takes precedence over TS)

Limitations and future improvements

  • If Karma is not phased out first, consider migrating all packages to TypeScript configs for consistency

…ma-setup.ts`

Sometimes it's typescript that u want.
@mondoreale mondoreale merged commit 10c11ae into main Jan 23, 2026
42 of 43 checks passed
@mondoreale mondoreale deleted the support-ts-karma-setup-files branch January 23, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant