forked from TTLApp/time-to-leave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start migration of tests to electron-mocha (TTLApp#1061)
* Updating mocha, electron mocha and babel commonjs * Migrating time-math to electron-mocha * Properly generating coverage report from c8 * Using istanbul-merge to merge coverage reports * Including other extensions in jest coverage * Removing trailing comma
- Loading branch information
1 parent
8f2ae80
commit b3fd77f
Showing
9 changed files
with
639 additions
and
1,005 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,6 @@ | ||
{ | ||
"all": true, | ||
"include": ["js/**.{cjs,js,mjs}", "js/classes/**.{cjs,js,mjs}", "src/**.{cjs,js,mjs}", "./main.{cjs,js,mjs}"], | ||
"reporter": ["clover", "json", "lcov", "text"], | ||
"reportsDir": "coverage_c8" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ lib-cov | |
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
coverage_c8 | ||
coverage_jest | ||
*.lcov | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const data = require('./mocha-base.config.cjs'); | ||
|
||
data.spec = ['__tests__/__main__/time-math.js']; | ||
|
||
module.exports = data; |
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,9 @@ | ||
module.exports = { | ||
checkLeaks: true, | ||
color: true, | ||
parallel: true, | ||
require: [ | ||
'@babel/register', | ||
'@babel/plugin-transform-modules-commonjs' | ||
] | ||
}; |
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.