-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #3
- Loading branch information
Niklas Kiefer
committed
Feb 5, 2021
1 parent
4f91026
commit aae2528
Showing
15 changed files
with
810 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
coverage | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ test | |
coverage | ||
.github | ||
karma.config.js | ||
.babelrc | ||
.babelrc | ||
!dist | ||
tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// configures browsers to run test against | ||
// any of [ 'ChromeHeadless', 'Chrome', 'Firefox', 'Safari' ] | ||
var browsers = (process.env.TEST_BROWSERS || 'ChromeHeadless').split(','); | ||
|
||
// use puppeteer provided Chrome for testing | ||
process.env.CHROME_BIN = require('puppeteer').executablePath(); | ||
|
||
var VARIANT = process.env.VARIANT; | ||
|
||
var NODE_ENV = process.env.NODE_ENV; | ||
|
||
|
||
module.exports = function(karma) { | ||
karma.set({ | ||
|
||
basePath: '.', | ||
|
||
frameworks: [ | ||
'mocha', | ||
'sinon-chai' | ||
], | ||
|
||
files: [ | ||
'dist/' + VARIANT + '.' + (NODE_ENV === 'production' ? 'production.min' : 'development') + '.js', | ||
{ pattern: 'test/fixtures/diagram.bpmn', included: false }, | ||
{ pattern: 'dist/assets/**/*', included: false }, | ||
'test/distro/helper.js', | ||
'test/distro/' + VARIANT + '.js' | ||
], | ||
|
||
reporters: [ 'progress' ], | ||
|
||
browsers, | ||
|
||
browserNoActivityTimeout: 30000, | ||
|
||
singleRun: true, | ||
autoWatch: false | ||
}); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.