diff --git a/karma.conf.js b/karma.conf.js index ddca2e34e..c2e3f4582 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -32,7 +32,7 @@ if (process.env.SAUCE_USERNAME && process.env.SAUCE_ACCESS_KEY) { sl_latest_safari: { base: 'SauceLabs', browserName: 'safari', - platform: 'macOS 11', + platform: 'macOS 12', version: 'latest', }, }; @@ -64,11 +64,11 @@ module.exports = (config) => { }, files: [ { - pattern: 'node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js', - watched: false, + pattern: `test/*${config.grep || '*.test.js'}`, + type: 'module', }, { - pattern: `${config.package || 'core'}/test/*${config.grep || '*.test.js'}`, + pattern: `addons/*/test/*${config.grep || '*.test.js'}`, type: 'module', }, ], @@ -115,7 +115,7 @@ module.exports = (config) => { coverageIstanbulReporter: { reports: ['html', 'lcovonly', 'text-summary'], - dir: path.join(__dirname, 'coverage', config.package), + dir: path.join(__dirname, 'coverage'), combineBrowserReports: true, skipFilesWithNoCoverage: true, },