Sha256: 71a85bcf8f1a63bf6953932eb7fd94da4d263bbaa92b014460d707b92f51abb4

Contents?: true

Size: 991 Bytes

Versions: 5

Compression:

Stored size: 991 Bytes

Contents

const karmaReporters = ['mocha-clean'];

function isDebug(argument) {
  return argument === '--debug';
}

module.exports = function(config) {
  config.set({
    mode: 'development',
    basePath: '',
    frameworks: ['mocha', 'chai-sinon'],
    files: [
      'app/assets/javascripts/**/*.js',
      'test/javascripts/**/*test.js',
    ],
    exclude: [
      // Exclude JS files that create 'DOMContentLoaded' event listeners
      'app/assets/javascripts/**/redirect.js',
    ],
    mochaReporter: {
      output: 'autowatch',
    },
    preprocessors: {
      'test/javascripts/**/*test.js': ['webpack'],
    },
    webpack: {
      mode: 'none',
      output: {
        hashFunction: 'rsa-sha512',
      },
    },
    reporters: karmaReporters,
    port: 9876,
    colors: true,
    logLevel: config.LOG_WARN,
    autoWatch: false,
    browsers: ['ChromeHeadless'],
    singleRun: true,
    client: {
      mocha: {
        ui: 'tdd',
        grep: config.grep,
      },
    },
  });
};

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shopify_app-22.5.1 karma.conf.js
shopify_app-22.5.0 karma.conf.js
shopify_app-22.4.0 karma.conf.js
shopify_app-22.3.1 karma.conf.js
shopify_app-22.3.0 karma.conf.js