-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Remove existing points from map in appendData before calling re…
…nder Remove the existing points from the map in appendData before calling the render method. Otherwise, the original points are duplicated on the map. - [tests] Added NetJSONGraphRender to allow testing appendData --------- Co-authored-by: Federico Capoano <[email protected]>
- Loading branch information
1 parent
9079971
commit 0def491
Showing
4 changed files
with
59 additions
and
5 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 |
---|---|---|
|
@@ -25,10 +25,13 @@ | |
"jest": { | ||
"testEnvironment": "jsdom", | ||
"transformIgnorePatterns": [ | ||
"/node_modules/(?!(kdbush)/)", | ||
"/node_modules/(?!(kdbush|echarts|zrender)/)", | ||
"\\.pnp\\.[^\\/]+$" | ||
], | ||
"globalSetup": "./jest.global-setup.js" | ||
"globalSetup": "./jest.global-setup.js", | ||
"moduleNameMapper": { | ||
"\\.(css)$": "identity-obj-proxy" | ||
} | ||
}, | ||
"repository": "https://github.com/netjson/netjsongraph.js.git", | ||
"author": "Federico Capoano <[email protected]> (https://openwisp.io)", | ||
|
@@ -60,6 +63,7 @@ | |
"eslint-plugin-react": "^7.33.2", | ||
"html-webpack-plugin": "^5.6.0", | ||
"husky": "^9.0.11", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"lint-staged": "^15.2.2", | ||
|
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
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