Skip to content

Commit

Permalink
Merge pull request #293 from ckeditor/i/292
Browse files Browse the repository at this point in the history
Other: Bumped Karma test runner to v6.x. Closes #292.
  • Loading branch information
pomek authored Mar 18, 2022
2 parents 87b9c7a + f57ce75 commit 5071381
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 288 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"eslint-plugin-react": "^7.20.4",
"husky": "^4.2.5",
"istanbul-instrumenter-loader": "^3.0.1",
"karma": "^5.1.0",
"karma": "^6.3.17",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.3",
Expand Down
8 changes: 6 additions & 2 deletions scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
// See: https://github.com/ckeditor/ckeditor5-react/issues/25

const getKarmaConfig = require( './utils/getkarmaconfig' );
const { Server: KarmaServer } = require( 'karma' );
const karma = require( 'karma' );

const KarmaServer = karma.Server;
const parseConfig = karma.config.parseConfig;

const config = getKarmaConfig();
const parsedConfig = parseConfig( null, config, { throwErrors: true } );

const server = new KarmaServer( config );
const server = new KarmaServer( parsedConfig );

server.start();
Loading

0 comments on commit 5071381

Please sign in to comment.