Add 100% test coverage

Signed-off-by: Karan Shah <karan.shah@simplybusiness.co.uk>
This commit is contained in:
Karan Shah
2021-12-29 16:07:48 +00:00
parent b788f6dd32
commit d0d32eff64
+12 -2
View File
@@ -13,7 +13,7 @@
"build": "backstage-cli plugin:build",
"start": "backstage-cli plugin:serve",
"lint": "backstage-cli lint",
"test": "backstage-cli test",
"test": "backstage-cli test --coverage",
"diff": "backstage-cli plugin:diff",
"prepack": "backstage-cli prepack",
"postpack": "backstage-cli postpack",
@@ -50,5 +50,15 @@
},
"files": [
"dist"
]
],
"jest": {
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
}
}