Skip to content

Commit

Permalink
test: ensure karma config will test firefox when acrobat is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook Johnson authored and Westbrook committed Dec 17, 2019
1 parent 4b25a89 commit 01196cb
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 148 deletions.
18 changes: 10 additions & 8 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ governing permissions and limitations under the License.
*/
const { createDefaultConfig } = require('@open-wc/testing-karma');
const merge = require('deepmerge');
const path = require('path');

module.exports = (config) => {
config.set(
Expand All @@ -24,16 +23,19 @@ module.exports = (config) => {
type: 'module',
},
],
reporters: ['junit'],

esm: {
nodeResolve: true,
},
browsers: ['FirefoxHeadless'],
junitReporter: {
outputDir: process.env.JUNIT_REPORT_PATH,
outputFile: process.env.JUNIT_REPORT_NAME,
useBrowserName: false,
browsers: ['FirefoxHeadlessCustom'],
customLaunchers: {
FirefoxHeadlessCustom: {
base: 'Firefox',
flags: ['-headless'],
prefs: {
'toolkit.telemetry.reportingpolicy.firstRun': false,
'extensions.enabledScopes': 0,
},
},
},
coverageIstanbulReporter: {
thresholds: {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@commitlint/config-lerna-scopes": "^8.2.0",
"@open-wc/building-webpack": "^2.8.6",
"@open-wc/building-webpack": "^2.10.0",
"@open-wc/polyfills-loader": "^0.3.3",
"@open-wc/testing": "^2.4.2",
"@open-wc/testing-karma": "^3.2.16",
"@open-wc/testing-karma": "^3.2.19",
"@spectrum-css/rule": "^2.0.2",
"@spectrum-css/table": "^2.0.2",
"@storybook/addon-a11y": "^5.2.8",
Expand Down Expand Up @@ -151,7 +151,7 @@
"gulp-wrap": "^0.15.0",
"html-loader": "^0.5.5",
"husky": "^3.0.5",
"karma": "^4.2.0",
"karma": "^4.4.1",
"karma-firefox-launcher": "^1.2.0",
"karma-junit-reporter": "^1.2.0",
"karma-script-launcher": "^1.0.0",
Expand Down
Loading

0 comments on commit 01196cb

Please sign in to comment.