Sha256: 957a43e156c8172b5900db9bf7c976704da5e37bce3b036c9cf5619250f29c36

Contents?: true

Size: 1.06 KB

Versions: 55

Compression:

Stored size: 1.06 KB

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',
      'app/assets/javascripts/**/storage_access_redirect.js',
      'app/assets/javascripts/**/top_level_interaction.js',
      'app/assets/javascripts/**/partition_cookies.js',
    ],
    mochaReporter: {
      output: 'autowatch',
    },
    preprocessors: {
      'test/javascripts/**/*test.js': ['webpack'],
    },
    webpack: {},
    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

55 entries across 55 versions & 2 rubygems

Version Path
shopify_app-17.1.0 karma.conf.js
shopify_app-17.0.5 karma.conf.js
shopify_app-17.0.4 karma.conf.js
shopify_app-17.0.3 karma.conf.js
shopify_app-17.0.2 karma.conf.js
shopify_app-17.0.1 karma.conf.js
shopify_app-17.0.0 karma.conf.js
shopify_app-16.1.0 karma.conf.js
shopify_app-16.0.0 karma.conf.js
shopify_app-15.0.1 karma.conf.js
shopify_app-15.0.0 karma.conf.js
shopify_app-14.4.4 karma.conf.js
shopify_app-14.4.3 karma.conf.js
shopify_app-14.4.2 karma.conf.js
shopify_app-14.4.1 karma.conf.js