Skip to content

Commit

Permalink
Merge pull request #14 from ismailsunni/support-OL-10
Browse files Browse the repository at this point in the history
Support OL 10
  • Loading branch information
fredj authored Aug 12, 2024
2 parents 3837532 + 4722e5f commit 9463bea
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 67 deletions.
8 changes: 4 additions & 4 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
// collectCoverageFrom: undefined,

// The directory where Jest should output its coverage files
coverageDirectory: "coverage",
coverageDirectory: 'coverage',

// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
Expand Down Expand Up @@ -137,7 +137,7 @@ module.exports = {
// snapshotSerializers: [],

// The test environment that will be used for testing
testEnvironment: "jsdom",
testEnvironment: 'jsdom',

// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
Expand Down Expand Up @@ -192,6 +192,6 @@ module.exports = {
// Whether to use watchman for file crawling
// watchman: true,
transformIgnorePatterns: [
"node_modules/(?!(ol|pbf|@open-wc|chai-a11y-axe|lit-html|lit-element|node-fetch|fetch-blob|data-uri-to-buffer|formdata-polyfill|color-space|color-rgba|color-parse)/)", // <- exclude the OL lib
]
'node_modules/(?!(ol|pbf|@open-wc|chai-a11y-axe|lit-html|lit-element|node-fetch|fetch-blob|data-uri-to-buffer|formdata-polyfill|color-space|color-rgba|color-parse|rbush)/)', // <- exclude the OL lib
],
};
92 changes: 32 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test": "jest"
},
"peerDependencies": {
"ol": "7 || 8 || 9"
"ol": "7 || 8 || 9 || 10"
},
"devDependencies": {
"@babel/preset-env": "7.24.0",
Expand All @@ -41,7 +41,7 @@
"jest-environment-jsdom": "29.7.0",
"lit": "3.1.2",
"node-fetch": "3.3.2",
"ol": "9.0.0",
"ol": "10.0.0",
"ol-mapbox-style": "12.2.1",
"pixelmatch": "^5.3.0",
"pngjs": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/demo/demo-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class DemoApp extends LitElement {
this.printExtentLayer = new VectorLayer({
// @ts-ignore
'name': 'printExtent',
source: new VectorSource({
source: new VectorSource<Feature<Geometry>>({
features: [],
}),
});
Expand Down

0 comments on commit 9463bea

Please sign in to comment.