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
ruby_shopify_app-1.3.3 karma.conf.js
ruby_shopify_app-1.3.2 karma.conf.js
ruby_shopify_app-1.3.1 karma.conf.js
ruby_shopify_app-1.3.0 karma.conf.js
ruby_shopify_app-1.2.0 karma.conf.js
ruby_shopify_app-1.1.0 karma.conf.js
shopify_app-21.7.0 karma.conf.js
shopify_app-21.6.0 karma.conf.js
shopify_app-21.5.0 karma.conf.js
ruby_shopify_app-1.0.0 karma.conf.js
shopify_app-21.4.1 karma.conf.js
shopify_app-21.4.0 karma.conf.js
shopify_app-21.3.1 karma.conf.js
shopify_app-21.3.0 karma.conf.js
shopify_app-21.2.0 karma.conf.js
shopify_app-21.1.1 karma.conf.js
shopify_app-21.1.0 karma.conf.js
shopify_app-21.0.0 karma.conf.js
shopify_app-20.2.0 karma.conf.js
shopify_app-20.1.1 karma.conf.js