File "karma.conf.js"

Full Path: /home/rfaztorb/public_html/-20250522190404-20250531055716/wp-content/upgrade/wordpress/plugins/elementor-pro/karma.conf.js
File size: 432 bytes
MIME-type: text/plain
Charset: utf-8

const karmaCoreConfig = require( '../elementor/karma.conf' );

module.exports = function( config ) {
	karmaCoreConfig( config );

	// Set base path.
	config.basePath = __dirname + '/../elementor/';

	// Change qunit-tests to pro.
	Object.entries( config.files ).some( ( [ key, path ] ) => {
		if ( 'assets/js/qunit-tests.js' === path ) {
			config.files[ key ] = __dirname + '/' + path;
			return true;
		}
		return false;
	} );
};