mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 11:29:42 +02:00
test: disable coverage for .jison
files
Coverage for `.jison` files doesn't make sense, since most of the created JS lines are auto-generated. If jison ever adds a source-map feature, we can renable coverage for jison.
This commit is contained in:
@@ -11,6 +11,10 @@ module.exports = {
|
|||||||
{ 'token-stack': true },
|
{ 'token-stack': true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
coveragePathIgnorePatterns: [
|
||||||
|
'/node_modules/',
|
||||||
|
'^.+\\.jison$', // might be able to fix in future if .jison adds source-map support
|
||||||
|
],
|
||||||
transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib|khroma).*\\.js'],
|
transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib|khroma).*\\.js'],
|
||||||
testPathIgnorePatterns: ['/node_modules/', '.cache', './cypress'],
|
testPathIgnorePatterns: ['/node_modules/', '.cache', './cypress'],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
|
Reference in New Issue
Block a user