codecharta-visualization 2.2.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/conf/jestUnit.config.json +1 -0
- package/conf/setupJestUnit.ts +14 -0
- package/dist/bundler/browser/chunk-JOW3XFPF.js +4207 -0
- package/dist/bundler/browser/chunk-Z45ZNHXF.js +17 -0
- package/dist/bundler/browser/index.html +2 -2
- package/dist/bundler/browser/main-EHM43HB7.js +3526 -0
- package/dist/bundler/browser/package.json +2 -2
- package/dist/bundler/browser/styles-3P7QVJ6U.css +1 -0
- package/package.json +2 -2
- package/dist/bundler/browser/chunk-Q2ESIN7E.js +0 -4207
- package/dist/bundler/browser/chunk-W62KZUC2.js +0 -17
- package/dist/bundler/browser/main-RCRI6XNH.js +0 -3504
- package/dist/bundler/browser/styles-4C6GEAO3.css +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"collectCoverage": true,
|
|
3
|
+
"coverageThreshold": { "global": { "statements": 80, "branches": 80, "functions": 80, "lines": 80 } },
|
|
3
4
|
"rootDir": "./../",
|
|
4
5
|
"coverageDirectory": "<rootDir>/dist/coverage",
|
|
5
6
|
"collectCoverageFrom": ["<rootDir>/app/**/*.ts", "!**/node_modules/**"],
|
package/conf/setupJestUnit.ts
CHANGED
|
@@ -28,6 +28,20 @@ if (typeof globalThis.fetch === "undefined") {
|
|
|
28
28
|
) as any
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
// JSDOM implements neither Blob.text() nor File.text(), which every browser the app runs in has had
|
|
32
|
+
// for years, so reading an uploaded file would reject in tests alone. FileReader is implemented, so
|
|
33
|
+
// it stands in.
|
|
34
|
+
if (typeof Blob.prototype.text === "undefined") {
|
|
35
|
+
Blob.prototype.text = function (this: Blob) {
|
|
36
|
+
return new Promise<string>((resolve, reject) => {
|
|
37
|
+
const reader = new FileReader()
|
|
38
|
+
reader.onload = () => resolve(String(reader.result))
|
|
39
|
+
reader.onerror = () => reject(reader.error)
|
|
40
|
+
reader.readAsText(this)
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
31
45
|
// JSDOM (nwsapi) does not implement the native Popover API or the :popover-open selector.
|
|
32
46
|
// Without zone.js swallowing the thrown error, components calling popover.matches(":popover-open")
|
|
33
47
|
// would fail tests. Make the selector match nothing and stub the popover methods.
|