Skip to content

Commit

Permalink
Test on ChromeHeadless with Intl polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
nightskylark committed Sep 6, 2018
1 parent 516b839 commit 46750eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
/* global process */
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function(config) {
config.set({
browsers: ['Chrome'],
browsers: ['ChromeHeadless'],
frameworks: ['qunit'],
files: [
{ pattern: 'tests/no-intl-mock.js', watched: false },
'node_modules/intl/dist/Intl.min.js',
'node_modules/intl/locale-data/complete.js',
{ pattern: 'tests/index.js', watched: false }
],
preprocessors: {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"cldrjs": "^0.3.1",
"devextreme": "17.1 - 18.1",
"eslint": "^3.10.2",
"intl": "^1.2.5",
"jquery": "^3.0.0",
"karma": "^2.0.5",
"karma-chrome-launcher": "^2.2.0",
Expand All @@ -30,7 +31,7 @@
"npm-run-all": "^4.1.3",
"object-assign": "^4.1.0",
"parallelshell": "^2.0.0",
"phantomjs-prebuilt": "^2.1.7",
"puppeteer": "^1.7.0",
"qunitjs": "^1.23.1",
"systemjs": "^0.19.41",
"systemjs-plugin-json": "^0.2.2",
Expand Down
1 change: 1 addition & 0 deletions tests/no-intl-mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
window.Intl = undefined;

0 comments on commit 46750eb

Please sign in to comment.