Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes tests - Removes xmlshim dep from test dependencies - Fixes if logic in map tests - Upgrades jest and babel configs for version 27 and 7 respectively.
- Loading branch information
1 parent
ebc3f9a
commit db0e7eb
Showing
10 changed files
with
26,053 additions
and
4,197 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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"presets": ["@babel/env", "@babel/react"], | ||
"targets": { | ||
"node": "current" | ||
}, | ||
"plugins": [] | ||
} |
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 |
---|---|---|
|
@@ -31,4 +31,4 @@ | |
# | ||
|
||
npm install | ||
npm install --no-save canvas@2.6.1 xmlshim | ||
npm install --no-save canvas |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const {defaults} = require('jest-config'); | ||
|
||
module.exports = { | ||
...defaults, | ||
testURL: "http://localhost", | ||
transform: {"\\.js$": "babel-jest"}, | ||
transformIgnorePatterns: ["/node_modules/(?!(ol|ol-mapbox-style|jsts|usng|usng-map-collar)/)"], | ||
moduleDirectories: ["./src", "./node_modules"], | ||
setupFiles: ["./tests/setup.js"], | ||
testEnvironment: "jsdom", | ||
}; |
Oops, something went wrong.