Skip to content

Commit

Permalink
Get tests running again
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Jan 29, 2024
1 parent 9c71c30 commit 5fe167d
Show file tree
Hide file tree
Showing 4 changed files with 513 additions and 142 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"babel-loader": "^8.0.0",
"babel-preset-minify": "^0.5.0",
"prettier": "^2.4.1",
"tape": "^4.11.0",
"tape": "^5.3.0",
"ts-loader": "^9.2.5",
"typescript": "^4.4.4",
"webpack": "^5.52.1",
Expand Down
19 changes: 10 additions & 9 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import {
geometryToCells,
getResolution,
hexToBigInt
} from '../src/index';
import {tileToQuadkey} from './quadkey-utils';
} from 'quadbin';

import {tileToQuadkey} from './quadkey-utils.js';

const TEST_TILES = [
{x: 0, y: 0, z: 0, q: 5192650370358181887n},
Expand Down Expand Up @@ -47,13 +48,13 @@ test('Quadbin getParent', async t => {
});

// Zoom:26 test not agreeing with Python
import PointGeometry from './data/PointGeometry.json';
import MultiPointGeometry from './data/MultiPointGeometry.json';
import LineStringGeometry from './data/LineStringGeometry.json';
import MultiLineStringGeometry from './data/MultiLineStringGeometry.json';
import PolygonGeometry from './data/PolygonGeometry.json';
import PolygonAntimeridianGeometry from './data/PolygonAntimeridianGeometry.json';
import MultiPolygonGeometry from './data/MultiPolygonGeometry.json';
import PointGeometry from './data/PointGeometry.json' assert {type: 'json'};
import MultiPointGeometry from './data/MultiPointGeometry.json' assert {type: 'json'};
import LineStringGeometry from './data/LineStringGeometry.json' assert {type: 'json'};
import MultiLineStringGeometry from './data/MultiLineStringGeometry.json' assert {type: 'json'};
import PolygonGeometry from './data/PolygonGeometry.json' assert {type: 'json'};
import PolygonAntimeridianGeometry from './data/PolygonAntimeridianGeometry.json' assert {type: 'json'};
import MultiPolygonGeometry from './data/MultiPolygonGeometry.json' assert {type: 'json'};
const testCases = [
PointGeometry,
MultiPointGeometry,
Expand Down
13 changes: 5 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compilerOptions": {
"target": "es2020",
"jsx": "react",
"target": "es2022",
"strict": true,
"noImplicitAny": false,
"allowJs": true,
Expand All @@ -14,12 +13,10 @@
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"test": ["test"]
"test": ["test"],
"quadbin": ["src"]
}
},
"include": [
"src"
],
"exclude": [
]
"include": ["src"],
"exclude": []
}
Loading

0 comments on commit 5fe167d

Please sign in to comment.