Skip to content

Commit

Permalink
Add node 16 compatibility
Browse files Browse the repository at this point in the history
- 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
theduckylittle committed Nov 19, 2021
1 parent ebc3f9a commit db0e7eb
Show file tree
Hide file tree
Showing 10 changed files with 26,053 additions and 4,197 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Expand Up @@ -37,7 +37,7 @@ jobs:
fail-fast: true
matrix:
platform: [ 'ubuntu-20.04' ]
node-version: [ '14.x' ]
node-version: [ '16.x' ]

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 7 additions & 0 deletions babel.config.json
@@ -0,0 +1,7 @@
{
"presets": ["@babel/env", "@babel/react"],
"targets": {
"node": "current"
},
"plugins": []
}
2 changes: 1 addition & 1 deletion install_test_deps.sh
Expand Up @@ -31,4 +31,4 @@
#

npm install
npm install --no-save canvas@2.6.1 xmlshim
npm install --no-save canvas
11 changes: 11 additions & 0 deletions jest.config.js
@@ -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",
};

0 comments on commit db0e7eb

Please sign in to comment.