How to use the @open-wc/testing-karma/default-settings.js function in @open-wc/testing-karma

To help you get started, we’ve selected a few @open-wc/testing-karma examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github open-wc / open-wc / packages / testing-helpers / karma.conf.js View on Github external
module.exports = config => {
  config.set(
    merge(defaultSettings(config), {
      files: [
        // allows running single tests with the --grep flag
        config.grep ? config.grep : 'test/**/*.test.js',
      ],

      // TODO: not yet within the 90% default
      coverageIstanbulReporter: {
        thresholds: {
          global: {
            statements: 80,
            branches: 70,
            functions: 70,
            lines: 80,
          },
        },
      },
github apollo-elements / apollo-elements / packages / hybrids / karma.conf.js View on Github external
module.exports = config => {
  const files = config.grep ? [config.grep] : ['*.test.js'];
  config.set(merge(defaultSettings(config), { files }));
  return config;
};

@open-wc/testing-karma

Testing with karma following open-wc recommendations

MIT
Latest version published 4 years ago

Package Health Score

67 / 100
Full package analysis