A Karma plugin adapter for loading test files via SystemJS module loader instead of script tags. Current version 0.16.0 disables SystemJS bundles by default; set useBundles: true to enable. Supports transpilers like Babel and TypeScript. Key differentiator: integrates SystemJS module loading into Karma test runner for testing ES modules with transpilation. Requires manual configuration of SystemJS config file and serving of dependencies. Note: The project appears to be in maintenance mode with limited recent activity.
npm install karma-systemjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Karma to use SystemJS for loading test files via System.import(), with a separate system config file and additional serve files.
Set systemjs.useBundles: true in your Karma config if you rely on SystemJS bundles.
Ensure that the karma config arrays either contain all needed values or use a different approach to avoid data loss.
In your SystemJS config, specify the transpiler path under paths or map; karma-systemjs will handle serving automatically.
Install phantomjs-polyfill and include it in your SystemJS config.
Consider using SystemJS 0.21+ which includes its own polyfill; remove es6-module-loader dependency if not needed.
Add 'phantomjs-polyfill' to your SystemJS config: System.config({ map: { 'phantomjs-polyfill': 'node_modules/phantomjs-polyfill/bind-polyfill.js' } });Ensure all modules are properly defined as ES modules or System.register; avoid anonymous AMD define() calls.