Skip to content

Commit ec05357

Browse files
authored
chore: update rollup & plugins, tune fixture thresholds & tolerances (#154)
* chore: update rollup & plugins, tune fixture thresholds & tolerances * fix: tune border test threshold * fix: tune more thresholds * fix: and more
1 parent b5623a6 commit ec05357

18 files changed

+433
-314
lines changed

package-lock.json

Lines changed: 421 additions & 310 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"homepage": "https://github.com/kurkle/chartjs-chart-sankey#readme",
4646
"devDependencies": {
47-
"@rollup/plugin-node-resolve": "^15.0.1",
47+
"@rollup/plugin-node-resolve": "^15.3.0",
4848
"@rollup/plugin-terser": "^0.4.0",
4949
"@typescript-eslint/eslint-plugin": "^5.10.2",
5050
"@typescript-eslint/parser": "^5.10.2",
@@ -66,8 +66,8 @@
6666
"karma-jasmine-html-reporter": "^2.0.0",
6767
"karma-rollup-preprocessor": "7.0.7",
6868
"karma-spec-reporter": "^0.0.36",
69-
"rollup": "^3.3.0",
70-
"rollup-plugin-istanbul": "^4.0.0",
69+
"rollup": "^4.24.0",
70+
"rollup-plugin-istanbul": "^5.0.0",
7171
"typescript": "^5.0.4"
7272
},
7373
"peerDependencies": {

test/fixtures/basic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
threshold: 0.15,
23
config: {
34
type: 'sankey',
45
data: {

test/fixtures/basic.png

2.21 KB
Loading

test/fixtures/border.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
threshold: 0.15,
23
config: {
34
type: 'sankey',
45
data: {

test/fixtures/border.png

4.15 KB
Loading

test/fixtures/issues/issue25.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,8 @@ const colors = {
10241024
const getColor = (nodeId) => colors[nodeId.split('_')[1]];
10251025

10261026
module.exports = {
1027+
tolerance: 0.02,
1028+
threshold: 0.15,
10271029
config: {
10281030
type: 'sankey',
10291031
data: {

test/fixtures/issues/issue25.png

-62.1 KB
Loading

test/fixtures/issues/issue57.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const data = [
2020
];
2121

2222
module.exports = {
23+
tolerance: 0.02,
2324
config: {
2425
type: 'sankey',
2526
data: {

test/fixtures/issues/issue57.png

-7.2 KB
Loading

0 commit comments

Comments
 (0)