diff --git a/examples/advanced/package.json b/examples/advanced/package.json index fa661ff4e..ad184a93e 100644 --- a/examples/advanced/package.json +++ b/examples/advanced/package.json @@ -18,12 +18,12 @@ "styled-components": "^4.3.2" }, "devDependencies": { - "@babel/core": "^7.9.0", - "@babel/plugin-proposal-class-properties": "^7.8.3", - "@babel/plugin-proposal-export-default-from": "^7.8.3", - "@babel/preset-env": "^7.0.0", - "@babel/preset-react": "^7.0.0", - "@babel/preset-typescript": "7.9.0", + "@babel/core": "^7.15.8", + "@babel/plugin-proposal-class-properties": "7.14.5", + "@babel/plugin-proposal-export-default-from": "7.14.5", + "@babel/preset-env": "7.15.8", + "@babel/preset-react": "7.14.5", + "@babel/preset-typescript": "7.15.0", "babel-loader": "^8.1.0", "html-webpack-plugin": "^3.2.0", "url-loader": "^1.0.1", diff --git a/examples/advanced/src/example.tsx b/examples/advanced/src/example.tsx index 0643cb136..d1b10e463 100644 --- a/examples/advanced/src/example.tsx +++ b/examples/advanced/src/example.tsx @@ -191,7 +191,7 @@ function getEditHandleTypeFromEitherLayer(handleOrFeature) { return handleOrFeature.type; } -function getEditHandleColor(handle: {}) { +function getEditHandleColor(handle: object) { switch (getEditHandleTypeFromEitherLayer(handle)) { case 'existing': return [0xff, 0x80, 0x00, 0xff]; @@ -204,7 +204,7 @@ function getEditHandleColor(handle: {}) { } export default class Example extends React.Component< - {}, + unknown, { viewport: Record; testFeatures: any; @@ -223,7 +223,7 @@ export default class Example extends React.Component< }; } > { - constructor(props: {}) { + constructor(props: unknown) { super(props); this.state = { @@ -594,6 +594,7 @@ export default class Example extends React.Component< if (POLYGON_DRAWING_MODES.indexOf(this.state.mode) > -1) { controls.push(this._renderBooleanOperationControls()); } + // @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'typeof GeoJsonEditMode' is not a... Remove this comment to see the full error message if (TWO_CLICK_POLYGON_MODES.indexOf(this.state.mode) > -1) { controls.push(this._renderTwoClickPolygonControls()); } @@ -918,6 +919,7 @@ export default class Example extends React.Component< }); } + // @ts-expect-error expected 0 arguments, but got 1 const editableGeoJsonLayer = new EditableGeoJsonLayer({ id: 'geojson', data: testFeatures, @@ -1000,8 +1002,10 @@ export default class Example extends React.Component< if (this.state.selectionTool) { layers.push( + // @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'SelectionLayer' is not assignabl... Remove this comment to see the full error message new SelectionLayer({ id: 'selection', + // @ts-expect-error ts-migrate(2345) FIXME: Argument of type '{ id: string; selectionType: str... Remove this comment to see the full error message selectionType: this.state.selectionTool, onSelect: ({ pickingInfos }) => { this.setState({ selectedFeatureIndexes: pickingInfos.map((pi) => pi.index) }); @@ -1024,6 +1028,7 @@ export default class Example extends React.Component< // @ts-expect-error ts-migrate(2559) FIXME: Type '{ height: any; width: any; }' has no propert... Remove this comment to see the full error message viewState={viewport} getCursor={editableGeoJsonLayer.getCursor.bind(editableGeoJsonLayer)} + // @ts-expect-error ts-migrate(2322) FIXME: Type 'EditableGeoJsonLayer[]' is not assignable to... Remove this comment to see the full error message layers={layers} height="100%" width="100%" diff --git a/modules/edit-modes/test/immutable-feature-collection.test.ts b/modules/edit-modes/test/immutable-feature-collection.test.ts index 6726df62a..d3da3cd13 100644 --- a/modules/edit-modes/test/immutable-feature-collection.test.ts +++ b/modules/edit-modes/test/immutable-feature-collection.test.ts @@ -10,6 +10,7 @@ let multiLineStringFeature; let multiPolygonFeature; let featureCollection; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { pointFeature = { type: 'Feature', @@ -139,15 +140,20 @@ beforeEach(() => { }; }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('getObject()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('can get real object', () => { const editable = new ImmutableFeatureCollection(featureCollection); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(editable.getObject()).toBe(featureCollection); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('replacePosition()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`doesn't mutate original`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -155,10 +161,13 @@ describe('replacePosition()', () => { }); const updatedFeatures = features.replacePosition(0, [], [10, 20]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(updatedFeatures).not.toBe(features); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(pointFeature.geometry.coordinates).toEqual([1, 2]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('replaces position in Point', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -169,9 +178,11 @@ describe('replacePosition()', () => { const actualCoordinates = updatedFeatures.getObject().features[0].geometry.coordinates; const expectedCoordinates = [10, 20]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('replaces first position in LineString', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -186,9 +197,11 @@ describe('replacePosition()', () => { [3, 4], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('replaces middle position in Polygon', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -216,9 +229,11 @@ describe('replacePosition()', () => { ], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('replaces last position when replacing first position in Polygon', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -244,9 +259,11 @@ describe('replacePosition()', () => { ], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('replaces first position when replacing last position in Polygon', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -272,11 +289,14 @@ describe('replacePosition()', () => { ], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('removePosition()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`doesn't mutate original`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -284,7 +304,9 @@ describe('removePosition()', () => { }); const updatedFeatures = features.removePosition(0, [0]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(updatedFeatures).not.toBe(features); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(lineStringFeature.geometry.coordinates).toEqual([ [1, 2], [2, 3], @@ -292,17 +314,20 @@ describe('removePosition()', () => { ]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('throws exception when attempting to remove Point', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', features: [pointFeature], }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(() => features.removePosition(0, [0])).toThrow( `Can't remove a position from a Point or there'd be nothing left` ); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('removes first position in LineString', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -316,9 +341,11 @@ describe('removePosition()', () => { [3, 4], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('removes middle position in Polygon', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -342,9 +369,11 @@ describe('removePosition()', () => { ], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('changes last position when removing first position in Polygon', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -369,9 +398,11 @@ describe('removePosition()', () => { ], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('changes first position when removing last position in Polygon', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -396,9 +427,11 @@ describe('removePosition()', () => { ], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('throws exception when LineString has only 2 positions', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -416,11 +449,13 @@ describe('removePosition()', () => { ], }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(() => features.removePosition(0, [0])).toThrow( `Can't remove position. LineString must have at least two positions` ); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('throws exception when Polygon outer ring has only 4 positions (triangle)', () => { let features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -430,11 +465,13 @@ describe('removePosition()', () => { // Convert from quadrilateral to triangle .removePosition(0, [0, 1]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(() => features.removePosition(0, [0, 1])).toThrow( `Can't remove position. Polygon's outer ring must have at least four positions` ); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('removes hole from Polygon when it has less than four positions', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -456,9 +493,11 @@ describe('removePosition()', () => { ], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualGeometry).toEqual(expectedGeometry); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('removes LineString from MultiLineString when it has only one position', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -478,9 +517,11 @@ describe('removePosition()', () => { ], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualGeometry).toEqual(expectedGeometry); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('throws exception when MultiLineString has only 2 positions', () => { let features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -493,11 +534,13 @@ describe('removePosition()', () => { // shrink the remaining LineString to two positions .removePosition(0, [0, 0]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(() => features.removePosition(0, [0, 0])).toThrow( `Can't remove position. MultiLineString must have at least two positions` ); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('removes Polygon from MultiPolygon when outer ring has less than four positions', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -511,9 +554,11 @@ describe('removePosition()', () => { coordinates: [multiPolygonFeature.geometry.coordinates[0]], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualGeometry).toEqual(expectedGeometry); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('removes hole from MultiPolygon when it has less than four positions', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -546,9 +591,11 @@ describe('removePosition()', () => { ], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualGeometry).toEqual(expectedGeometry); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('throws exception when MultiPolygon outer ring has only 4 positions', () => { let features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -561,13 +608,16 @@ describe('removePosition()', () => { // Remove positions from outer ring .removePosition(0, [0, 0, 1]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(() => features.removePosition(0, [0, 0, 1])).toThrow( `Can't remove position. MultiPolygon's outer ring must have at least four positions` ); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('addPosition()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`doesn't mutate original`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -575,7 +625,9 @@ describe('addPosition()', () => { }); const updatedFeatures = features.addPosition(0, [1], [2, 3]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(updatedFeatures).not.toBe(features); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(lineStringFeature.geometry.coordinates).toEqual([ [1, 2], [2, 3], @@ -583,17 +635,20 @@ describe('addPosition()', () => { ]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('throws exception when attempting to add position to Point', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', features: [pointFeature], }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(() => features.addPosition(0, [], [3, 4])).toThrow( 'Unable to add a position to a Point feature' ); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds position to beginning of LineString', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -609,9 +664,11 @@ describe('addPosition()', () => { [3, 4], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds position to middle of LineString', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -627,9 +684,11 @@ describe('addPosition()', () => { [3, 4], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds position to end of LineString', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -645,9 +704,11 @@ describe('addPosition()', () => { [10, 20], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds position in Polygon', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -677,11 +738,14 @@ describe('addPosition()', () => { ], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('addFeature()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`doesn't mutate original`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -689,9 +753,11 @@ describe('addFeature()', () => { }); features.addFeature(pointFeature); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(features.getObject().features.length).toEqual(0); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds feature to empty array', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -704,9 +770,11 @@ describe('addFeature()', () => { features: [pointFeature], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualFeatures).toEqual(expectedFeatures); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds feature to end of array', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -719,11 +787,14 @@ describe('addFeature()', () => { features: [multiPointFeature, multiLineStringFeature], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualFeatures).toEqual(expectedFeatures); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('addFeatures()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`doesn't mutate original`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -731,9 +802,11 @@ describe('addFeatures()', () => { }); features.addFeatures([multiPointFeature, pointFeature]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(features.getObject().features.length).toEqual(0); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds features to empty array', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -746,9 +819,11 @@ describe('addFeatures()', () => { features: [multiPointFeature, pointFeature], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualFeatures).toEqual(expectedFeatures); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds features to end of array', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -761,11 +836,14 @@ describe('addFeatures()', () => { features: [multiPointFeature, multiLineStringFeature], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualFeatures).toEqual(expectedFeatures); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('deleteFeature()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`Do nothing when empty array`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -773,9 +851,11 @@ describe('deleteFeature()', () => { }); features.deleteFeature(0); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(features.getObject().features.length).toEqual(0); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`doesn't mutate original`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -783,9 +863,11 @@ describe('deleteFeature()', () => { }); features.deleteFeature(0); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(features.getObject().features.length).toEqual(1); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('delete feature', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -798,11 +880,14 @@ describe('deleteFeature()', () => { features: [multiPointFeature], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualFeatures).toEqual(expectedFeatures); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('deleteFeatures()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`Do nothing when empty array`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -810,9 +895,11 @@ describe('deleteFeatures()', () => { }); features.deleteFeatures([0, 1]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(features.getObject().features.length).toEqual(0); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`doesn't mutate original`, () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -820,9 +907,11 @@ describe('deleteFeatures()', () => { }); features.deleteFeatures([0]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(features.getObject().features.length).toEqual(1); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('delete single feature', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -835,9 +924,11 @@ describe('deleteFeatures()', () => { features: [multiPointFeature], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualFeatures).toEqual(expectedFeatures); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('delete multiple features', () => { const features = new ImmutableFeatureCollection({ type: 'FeatureCollection', @@ -850,11 +941,14 @@ describe('deleteFeatures()', () => { features: [], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualFeatures).toEqual(expectedFeatures); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('replacePosition() with elevation', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('replaces position in Point', () => { const elevatedPointFeature = { type: 'Feature', @@ -871,9 +965,11 @@ describe('replacePosition() with elevation', () => { const actualCoordinates = updatedFeatures.getObject().features[0].geometry.coordinates; const expectedCoordinates = [10, 20, 1000]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('replaces first position in LineString', () => { const elevatedLineStringFeature = { type: 'Feature', @@ -901,6 +997,7 @@ describe('replacePosition() with elevation', () => { [3, 4, 3000], ]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualCoordinates).toEqual(expectedCoordinates); }); }); diff --git a/modules/edit-modes/test/lib/draw-circle-by-diameter-mode.test.ts b/modules/edit-modes/test/lib/draw-circle-by-diameter-mode.test.ts index 416aba221..206788ea8 100644 --- a/modules/edit-modes/test/lib/draw-circle-by-diameter-mode.test.ts +++ b/modules/edit-modes/test/lib/draw-circle-by-diameter-mode.test.ts @@ -12,6 +12,7 @@ import { let featureCollection: FeatureCollection; let warnBefore; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { warnBefore = console.warn; // eslint-disable-line // $FlowFixMe @@ -25,12 +26,15 @@ beforeEach(() => { } }); +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'afterEach'. afterEach(() => { // $FlowFixMe console.warn = warnBefore; // eslint-disable-line }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('dragToDraw=false', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('sets tentative feature to a Polygon after first click', () => { const mode = new DrawCircleByDiameterMode(); @@ -45,11 +49,13 @@ describe('dragToDraw=false', () => { throw new Error('Should have tentative feature'); } + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tentativeFeature.geometry.type).toEqual('Polygon'); - // @ts-expect-error ts-migrate(2339) FIXME: Property 'length' does not exist on type 'number |... Remove this comment to see the full error message + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tentativeFeature.geometry.coordinates[0].length).toEqual(65); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds a new feature after two clicks', () => { const mode = new DrawCircleByDiameterMode(); @@ -59,16 +65,22 @@ describe('dragToDraw=false', () => { props.lastPointerMoveEvent = createPointerMoveEvent([2, 3]); mode.handleClick(createClickEvent([2, 3]), props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit).toHaveBeenCalledTimes(1); // @ts-expect-error ts-migrate(2339) FIXME: Property 'mock' does not exist on type '(editActio... Remove this comment to see the full error message const result = props.onEdit.mock.calls[0][0]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.editType).toEqual('addFeature'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.editContext.featureIndexes).toEqual([featureCollection.features.length]); const resultFeatures = result.updatedData.features; const newFeature = resultFeatures[resultFeatures.length - 1]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(newFeature.properties.shape).toEqual('Circle'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(newFeature.geometry.type).toEqual('Polygon'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(newFeature.geometry.coordinates[0].length).toEqual(65); }); }); diff --git a/modules/edit-modes/test/lib/draw-line-string-mode.test.ts b/modules/edit-modes/test/lib/draw-line-string-mode.test.ts index fd8473ce9..44e3bc6c3 100644 --- a/modules/edit-modes/test/lib/draw-line-string-mode.test.ts +++ b/modules/edit-modes/test/lib/draw-line-string-mode.test.ts @@ -5,6 +5,7 @@ import { createFeatureCollectionProps, createClickEvent } from '../test-utils'; let props; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeAll'. beforeAll(() => { const mode = new DrawLineStringMode(); props = createFeatureCollectionProps({ @@ -38,33 +39,50 @@ beforeAll(() => { ); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('while tentative', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('calls onEdit', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit).toHaveBeenCalledTimes(4); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[0][0].editType).toEqual('addTentativePosition'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[0][0].editContext.position).toEqual([1, 2]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[1][0].editType).toEqual('addTentativePosition'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[1][0].editContext.position).toEqual([3, 4]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[2][0].editType).toEqual('addTentativePosition'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[2][0].editContext.position).toEqual([5, 6]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`doesn't change the data`, () => { const expectedData = { type: 'FeatureCollection', features: [], }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[0][0].updatedData).toEqual(expectedData); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[1][0].updatedData).toEqual(expectedData); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[2][0].updatedData).toEqual(expectedData); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('after double-clicking', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('calls onEdit with an added feature', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[3][0].editType).toEqual('addFeature'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[3][0].updatedData.features).toEqual([ { type: 'Feature', diff --git a/modules/edit-modes/test/lib/draw-rectangle-mode.test.ts b/modules/edit-modes/test/lib/draw-rectangle-mode.test.ts index a31262c12..882b66db0 100644 --- a/modules/edit-modes/test/lib/draw-rectangle-mode.test.ts +++ b/modules/edit-modes/test/lib/draw-rectangle-mode.test.ts @@ -18,6 +18,7 @@ let polygonFeature: Feature; let polygonFeatureIndex: number; let warnBefore; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { warnBefore = console.warn; // eslint-disable-line // $FlowFixMe @@ -33,12 +34,15 @@ beforeEach(() => { polygonFeatureIndex = featureCollection.features.indexOf(polygonFeature); }); +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'afterEach'. afterEach(() => { // $FlowFixMe console.warn = warnBefore; // eslint-disable-line }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('dragToDraw=false', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('sets tentative feature to a Polygon after first click', () => { const mode = new DrawRectangleMode(); @@ -53,6 +57,7 @@ describe('dragToDraw=false', () => { throw new Error('Should have tentative feature'); } + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tentativeFeature.geometry).toEqual({ type: 'Polygon', coordinates: [ @@ -67,6 +72,7 @@ describe('dragToDraw=false', () => { }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds a new feature after two clicks', () => { const mode = new DrawRectangleMode(); @@ -107,13 +113,16 @@ describe('dragToDraw=false', () => { }, }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit).toHaveBeenCalledTimes(1); - // @ts-expect-error ts-migrate(2339) FIXME: Property 'mock' does not exist on type '(editActio... Remove this comment to see the full error message + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[0][0]).toEqual(expectedAction2); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('dragToDraw=true', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('sets tentative feature to a Polygon after start dragging', () => { const mode = new DrawRectangleMode(); @@ -132,6 +141,7 @@ describe('dragToDraw=true', () => { throw new Error('Should have tentative feature'); } + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tentativeFeature.geometry).toEqual({ type: 'Polygon', coordinates: [ @@ -146,6 +156,7 @@ describe('dragToDraw=true', () => { }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('adds a new feature after stop dragging', () => { const mode = new DrawRectangleMode(); @@ -190,14 +201,18 @@ describe('dragToDraw=true', () => { }, }; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit).toHaveBeenCalledTimes(1); - // @ts-expect-error ts-migrate(2339) FIXME: Property 'mock' does not exist on type '(editActio... Remove this comment to see the full error message + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit.mock.calls[0][0]).toEqual(expectedAction2); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('modeConfig.booleanOperation', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('union', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('unions shapes', () => { const mode = new DrawRectangleMode(); @@ -213,16 +228,20 @@ describe('modeConfig.booleanOperation', () => { props.lastPointerMoveEvent = createPointerMoveEvent([2, 2]); mode.handleClick(createClickEvent([2, 2]), props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit).toHaveBeenCalledTimes(1); // @ts-expect-error ts-migrate(2339) FIXME: Property 'mock' does not exist on type '(editActio... Remove this comment to see the full error message const action = props.onEdit.mock.calls[0][0]; const areaAfter = turfArea(action.updatedData.features[polygonFeatureIndex]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(areaAfter).toBeGreaterThan(areaBefore); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('difference', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('subtracts geometry', () => { const mode = new DrawRectangleMode(); @@ -238,16 +257,20 @@ describe('modeConfig.booleanOperation', () => { props.lastPointerMoveEvent = createPointerMoveEvent([2, 2]); mode.handleClick(createClickEvent([2, 2]), props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit).toHaveBeenCalledTimes(1); // @ts-expect-error ts-migrate(2339) FIXME: Property 'mock' does not exist on type '(editActio... Remove this comment to see the full error message const action = props.onEdit.mock.calls[0][0]; const areaAfter = turfArea(action.updatedData.features[polygonFeatureIndex]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(areaAfter).toBeLessThan(areaBefore); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('intersection', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('subtracts geometry', () => { const mode = new DrawRectangleMode(); @@ -263,11 +286,13 @@ describe('modeConfig.booleanOperation', () => { props.lastPointerMoveEvent = createPointerMoveEvent([2, 2]); mode.handleClick(createClickEvent([2, 2]), props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.onEdit).toHaveBeenCalledTimes(1); // @ts-expect-error ts-migrate(2339) FIXME: Property 'mock' does not exist on type '(editActio... Remove this comment to see the full error message const action = props.onEdit.mock.calls[0][0]; const areaAfter = turfArea(action.updatedData.features[polygonFeatureIndex]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(areaAfter).toBeLessThan(areaBefore); }); }); diff --git a/modules/edit-modes/test/lib/measure-angle-mode.test.ts b/modules/edit-modes/test/lib/measure-angle-mode.test.ts index 739829b83..976321703 100644 --- a/modules/edit-modes/test/lib/measure-angle-mode.test.ts +++ b/modules/edit-modes/test/lib/measure-angle-mode.test.ts @@ -7,36 +7,46 @@ import { createPointerMoveEvent, } from '../test-utils'; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('move without click', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureAngleMode(); mode.handlePointerMove(createPointerMoveEvent(), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltips are empty', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toEqual([]); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('one click', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureAngleMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltips are empty', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toEqual([]); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('three clicks + pointer move', () => { let mode; let props; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureAngleMode(); props = createFeatureCollectionProps(); @@ -46,21 +56,27 @@ describe('three clicks + pointer move', () => { props.lastPointerMoveEvent = createPointerMoveEvent([1, -1]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltip contains angle', () => { const tooltips = mode.getTooltips(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('can measure degrees', () => { const tooltips = mode.getTooltips(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips[0].text).toContain('deg'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('can format angle', () => { const tooltips = mode.getTooltips({ ...props, modeConfig: { formatTooltip: (angle) => String(Math.round(angle)) }, }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips[0].text).toEqual('45'); }); }); diff --git a/modules/edit-modes/test/lib/measure-area-mode.test.ts b/modules/edit-modes/test/lib/measure-area-mode.test.ts index 7cda54c9f..d643cc610 100644 --- a/modules/edit-modes/test/lib/measure-area-mode.test.ts +++ b/modules/edit-modes/test/lib/measure-area-mode.test.ts @@ -7,36 +7,46 @@ import { createPointerMoveEvent, } from '../test-utils'; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('move without click', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureAreaMode(); mode.handlePointerMove(createPointerMoveEvent(), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltips are empty', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toEqual([]); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('one click', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureAreaMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltips are empty', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toEqual([]); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('three clicks + pointer move', () => { let mode; let props; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureAreaMode(); props = createFeatureCollectionProps(); @@ -46,21 +56,27 @@ describe('three clicks + pointer move', () => { props.lastPointerMoveEvent = createPointerMoveEvent([1, -1]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltip contains area', () => { const tooltips = mode.getTooltips(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('can measure square meters', () => { const tooltips = mode.getTooltips(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips[0].text).toContain('sq. m'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('can format area', () => { const tooltips = mode.getTooltips({ ...props, modeConfig: { formatTooltip: (area) => String(Math.round(area)) }, }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips[0].text).toEqual('49565599608'); }); }); diff --git a/modules/edit-modes/test/lib/measure-distance-mode.test.ts b/modules/edit-modes/test/lib/measure-distance-mode.test.ts index 1c4551fe3..80c566847 100644 --- a/modules/edit-modes/test/lib/measure-distance-mode.test.ts +++ b/modules/edit-modes/test/lib/measure-distance-mode.test.ts @@ -8,101 +8,133 @@ import { createKeyboardEvent, } from '../test-utils'; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('move without click', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureDistanceMode(); mode.handlePointerMove(createPointerMoveEvent(), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('guides are empty', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toEqual({ type: 'FeatureCollection', features: [] }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltips are empty', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toEqual([]); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('one click', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureDistanceMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('guides are a single point', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltips are 0.00', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips[0].text).toContain('0.00'); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('one click + pointer move', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureDistanceMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); mode.handlePointerMove(createPointerMoveEvent([3, 4]), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('guides are two points + line string', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltip contains distance', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toMatchSnapshot(); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('two clicks', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureDistanceMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); mode.handleClick(createClickEvent([3, 4]), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('guides are two points + line string', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltip contains distance', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('can measure kilometers', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips[0].text).toContain('kilometers'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('can measure miles', () => { const tooltips = mode.getTooltips( createFeatureCollectionProps({ modeConfig: { turfOptions: { units: 'miles' } } }) ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips[tooltips.length - 1].text).toContain('miles'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('can format distance', () => { const tooltips = mode.getTooltips( createFeatureCollectionProps({ modeConfig: { formatTooltip: String } }) ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips[tooltips.length - 1].text).toEqual('314.28368918020476'); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('two clicks + pointer move', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureDistanceMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); @@ -110,19 +142,25 @@ describe('two clicks + pointer move', () => { mode.handlePointerMove(createPointerMoveEvent([4, 5]), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('ending point is clicked point not hovered point', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[2].geometry.coordinates).toEqual([3, 4]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltip contains distance', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toMatchSnapshot(); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('three clicks + pointer move', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureDistanceMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); @@ -131,29 +169,42 @@ describe('three clicks + pointer move', () => { mode.handlePointerMove(createPointerMoveEvent([6, 7]), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('first feature is a tentative line that contains 4 points', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].properties.guideType).toEqual('tentative'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.type).toEqual('LineString'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.coordinates.length).toEqual(4); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.coordinates[3]).toEqual([6, 7]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('Second feature is a editHandle point with coordinates [1,2]', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[1].properties.guideType).toEqual('editHandle'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[1].geometry.type).toEqual('Point'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[1].geometry.coordinates).toEqual([1, 2]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltip contains distance', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toMatchSnapshot(); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('three clicks + pointer move + press Escape', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureDistanceMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); @@ -163,22 +214,31 @@ describe('three clicks + pointer move + press Escape', () => { mode.handleKeyUp(createKeyboardEvent('Escape'), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('first feature is a tentative line that contains 3 points', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].properties.guideType).toEqual('tentative'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.type).toEqual('LineString'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.coordinates.length).toEqual(3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.coordinates[2]).toEqual([4, 5]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltip contains distance', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toMatchSnapshot(); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('three clicks + pointer move + press Enter', () => { let mode; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { mode = new MeasureDistanceMode(); mode.handleClick(createClickEvent([1, 2]), createFeatureCollectionProps()); @@ -188,16 +248,23 @@ describe('three clicks + pointer move + press Enter', () => { mode.handleKeyUp(createKeyboardEvent('Enter'), createFeatureCollectionProps()); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('first feature is a tentative line that contains 3 points', () => { const guides = mode.getGuides(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].properties.guideType).toEqual('tentative'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.type).toEqual('LineString'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.coordinates.length).toEqual(4); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides.features[0].geometry.coordinates[3]).toEqual([6, 7]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('tooltip contains distance', () => { const tooltips = mode.getTooltips(createFeatureCollectionProps()); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(tooltips).toMatchSnapshot(); }); }); diff --git a/modules/edit-modes/test/lib/modify-mode.test.ts b/modules/edit-modes/test/lib/modify-mode.test.ts index fe58f349a..5ce75f849 100644 --- a/modules/edit-modes/test/lib/modify-mode.test.ts +++ b/modules/edit-modes/test/lib/modify-mode.test.ts @@ -11,6 +11,7 @@ let multiPointFeature; let multiLineStringFeature; let multiPolygonFeature; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { pointFeature = { type: 'Feature', @@ -128,7 +129,9 @@ beforeEach(() => { }; }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('getGuides()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('gets edit handles for Point', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -141,9 +144,11 @@ describe('getGuides()', () => { const guides = mode.getGuides(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('gets edit handles for LineString', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -156,9 +161,11 @@ describe('getGuides()', () => { const guides = mode.getGuides(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('gets edit handles for Polygon', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -171,9 +178,11 @@ describe('getGuides()', () => { const guides = mode.getGuides(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('gets edit handles for MultiPoint', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -186,9 +195,11 @@ describe('getGuides()', () => { const guides = mode.getGuides(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('gets edit handles for MultiLineString', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -201,9 +212,11 @@ describe('getGuides()', () => { const guides = mode.getGuides(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('gets edit handles for MultiPolygon', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -216,9 +229,11 @@ describe('getGuides()', () => { const guides = mode.getGuides(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('gets edit handles for all selected features in collection', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -231,6 +246,7 @@ describe('getGuides()', () => { const guides = mode.getGuides(props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(guides).toMatchSnapshot(); }); @@ -266,6 +282,7 @@ describe('getGuides()', () => { const mapCoords: Position = [-122.43862233312133, 37.77767798407437]; + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('includes an intermediate edit handle', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -278,6 +295,7 @@ describe('getGuides()', () => { picks: [pick], mapCoords, screenCoords: [42, 42], + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. cancelPan: jest.fn(), sourceEvent: null, }, @@ -290,9 +308,11 @@ describe('getGuides()', () => { properties.guideType === 'editHandle' && properties.editHandleType === 'intermediate' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(intermediate).toMatchSnapshot(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('does not add intermeidate edit handle when no picks provided', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -309,9 +329,11 @@ describe('getGuides()', () => { ({ properties }) => properties.guideType === 'editHandle' && properties.editHandleType === 'intermediate' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(intermediate).toBeUndefined(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('does not add intermeidate edit handle when too close to existing edit handle', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -334,6 +356,7 @@ describe('getGuides()', () => { ], mapCoords, screenCoords: [42, 42], + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. cancelPan: jest.fn(), sourceEvent: null, }, @@ -345,9 +368,11 @@ describe('getGuides()', () => { ({ properties }) => properties.guideType === 'editHandle' && properties.editHandleType === 'intermediate' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(intermediate).toBeUndefined(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('does not add intermeidate edit handle when pick is not a selected feature', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -363,9 +388,11 @@ describe('getGuides()', () => { ({ properties }) => properties.guideType === 'editHandle' && properties.editHandleType === 'intermediate' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(intermediate).toBeUndefined(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('does not add intermeidate edit handle when pick is a Point / MultiPoint', () => { const mode = new ModifyMode(); const props = createFeatureCollectionProps({ @@ -384,6 +411,7 @@ describe('getGuides()', () => { ], mapCoords, screenCoords: [42, 42], + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. cancelPan: jest.fn(), sourceEvent: null, }, @@ -393,6 +421,7 @@ describe('getGuides()', () => { ({ properties }) => properties.guideType === 'editHandle' && properties.editHandleType === 'intermediate' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(intermediate).toBeUndefined(); }); }); diff --git a/modules/edit-modes/test/lib/rotate-mode.test.ts b/modules/edit-modes/test/lib/rotate-mode.test.ts index bf91f4744..7f0cbe1be 100644 --- a/modules/edit-modes/test/lib/rotate-mode.test.ts +++ b/modules/edit-modes/test/lib/rotate-mode.test.ts @@ -11,6 +11,7 @@ import { FeatureCollection } from '../../src/geojson-types'; let rotateMode: RotateMode; let warnBefore; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { warnBefore = console.warn; // eslint-disable-line // $FlowFixMe @@ -18,6 +19,7 @@ beforeEach(() => { rotateMode = new RotateMode(); }); +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'afterEach'. afterEach(() => { // $FlowFixMe console.warn = warnBefore; // eslint-disable-line @@ -36,7 +38,9 @@ const mockRotate = (picks: Pick[], props: ModeProps) => { rotateMode.handleStopDragging(stopDragEvent, props); }; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('Selected polygon feature can be rotated', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. const mockOnEdit = jest.fn(); const props = createFeatureCollectionProps({ selectedIndexes: [2], @@ -55,13 +59,18 @@ test('Selected polygon feature can be rotated', () => { ]; mockRotate(mockPicks, props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnEdit).toHaveBeenCalledTimes(1); const scaledFeature = mockOnEdit.mock.calls[0][0].updatedData.features[2]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(scaledFeature).toMatchSnapshot(); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.data.features[2]).not.toEqual(scaledFeature); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('Selected polygon feature without edit handle picks cannot be rotated', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. const mockOnEdit = jest.fn(); const props = createFeatureCollectionProps({ selectedIndexes: [2], @@ -69,5 +78,6 @@ test('Selected polygon feature without edit handle picks cannot be rotated', () }); mockRotate([], props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnEdit).toHaveBeenCalledTimes(0); }); diff --git a/modules/edit-modes/test/lib/scale-mode.test.ts b/modules/edit-modes/test/lib/scale-mode.test.ts index c46db01e9..5f7c102fd 100644 --- a/modules/edit-modes/test/lib/scale-mode.test.ts +++ b/modules/edit-modes/test/lib/scale-mode.test.ts @@ -11,6 +11,7 @@ import { FeatureCollection } from '../../src/geojson-types'; let transformMode: TransformMode; let warnBefore; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { warnBefore = console.warn; // eslint-disable-line // $FlowFixMe @@ -18,6 +19,7 @@ beforeEach(() => { transformMode = new TransformMode(); }); +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'afterEach'. afterEach(() => { // $FlowFixMe console.warn = warnBefore; // eslint-disable-line @@ -36,7 +38,9 @@ const mockScale = (picks: Pick[], props: ModeProps) => { transformMode.handleStopDragging(stopDragEvent, props); }; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('Selected polygon feature can be scaled', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. const mockOnEdit = jest.fn(); const props = createFeatureCollectionProps({ selectedIndexes: [2], @@ -55,13 +59,18 @@ test('Selected polygon feature can be scaled', () => { ]; mockScale(mockPicks, props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnEdit).toHaveBeenCalledTimes(1); const scaledFeature = mockOnEdit.mock.calls[0][0].updatedData.features[2]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(scaledFeature).toMatchSnapshot(); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.data.features[2]).not.toEqual(scaledFeature); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('Selected polygon feature without edit handle picks cannot be scaled', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. const mockOnEdit = jest.fn(); const props = createFeatureCollectionProps({ selectedIndexes: [2], @@ -69,5 +78,6 @@ test('Selected polygon feature without edit handle picks cannot be scaled', () = }); mockScale([], props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnEdit).toHaveBeenCalledTimes(0); }); diff --git a/modules/edit-modes/test/lib/transform-mode.test.ts b/modules/edit-modes/test/lib/transform-mode.test.ts index c7e2a5a0d..51a5adce0 100644 --- a/modules/edit-modes/test/lib/transform-mode.test.ts +++ b/modules/edit-modes/test/lib/transform-mode.test.ts @@ -4,6 +4,7 @@ import { createFeatureCollectionProps, createPointerMoveEvent } from '../test-ut let transformMode: TransformMode; let warnBefore; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { warnBefore = console.warn; // eslint-disable-line // $FlowFixMe @@ -11,12 +12,15 @@ beforeEach(() => { transformMode = new TransformMode(); }); +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'afterEach'. afterEach(() => { // $FlowFixMe console.warn = warnBefore; // eslint-disable-line }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('onUpdateCursor is only set to null once', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. const mockOnUpdateCursor = jest.fn(); const moveEvent = createPointerMoveEvent([-1, -1], []); const props = createFeatureCollectionProps({ @@ -24,30 +28,42 @@ test('onUpdateCursor is only set to null once', () => { onUpdateCursor: mockOnUpdateCursor, }); transformMode.handlePointerMove(moveEvent, props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnUpdateCursor).toHaveBeenCalledTimes(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnUpdateCursor).toBeCalledWith(null); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('Transform mode correctly renders composited guides', () => { const props = createFeatureCollectionProps({ selectedIndexes: [2] }); const guides: Array = transformMode.getGuides(props).features; const scaleGuides = guides.filter((guide) => guide.properties.editHandleType === 'scale'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(scaleGuides.length).toEqual(4); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(scaleGuides).toMatchSnapshot(); const rotateGuide = guides.filter((guide) => guide.properties.editHandleType === 'rotate'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(rotateGuide.length).toEqual(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(rotateGuide).toMatchSnapshot(); const lineGuides = guides.filter((guide) => guide.geometry.type === 'LineString'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(lineGuides.length).toEqual(2); // scale bounding box + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(lineGuides[0].geometry.coordinates.length).toEqual(5); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(lineGuides[0].geometry.coordinates[0]).toEqual(lineGuides[0].geometry.coordinates[4]); // rotation handle + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(lineGuides[1].geometry.coordinates.length).toEqual(2); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(lineGuides).toMatchSnapshot(); }); diff --git a/modules/edit-modes/test/lib/translate-mode.test.ts b/modules/edit-modes/test/lib/translate-mode.test.ts index 36888d246..69ba779c3 100644 --- a/modules/edit-modes/test/lib/translate-mode.test.ts +++ b/modules/edit-modes/test/lib/translate-mode.test.ts @@ -11,6 +11,7 @@ import { FeatureCollection } from '../../src/geojson-types'; let transformMode: TransformMode; let warnBefore; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { warnBefore = console.warn; // eslint-disable-line // $FlowFixMe @@ -18,6 +19,7 @@ beforeEach(() => { transformMode = new TransformMode(); }); +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'afterEach'. afterEach(() => { // $FlowFixMe console.warn = warnBefore; // eslint-disable-line @@ -34,7 +36,9 @@ const mockMove = (picks: Pick[], props: ModeProps) => { transformMode.handleStopDragging(stopDragEvent, props); }; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('Selected polygon feature can be translated', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. const mockOnEdit = jest.fn(); const props = createFeatureCollectionProps({ selectedIndexes: [2], @@ -42,28 +46,37 @@ test('Selected polygon feature can be translated', () => { }); mockMove([{ index: 2, isGuide: false, object: null }], props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnEdit).toHaveBeenCalledTimes(1); const movedFeature = mockOnEdit.mock.calls[0][0].updatedData.features[2]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(movedFeature).toMatchSnapshot(); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(props.data.features[2]).not.toEqual(movedFeature); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('Non-picked selected polygon feature cannnot be translated', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. const mockOnEdit = jest.fn(); const props = createFeatureCollectionProps({ selectedIndexes: [2], onEdit: mockOnEdit, }); mockMove([], props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnEdit).toHaveBeenCalledTimes(0); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('Picked non-selected polygon feature cannnot be translated', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. const mockOnEdit = jest.fn(); const props = createFeatureCollectionProps({ selectedIndexes: [0], onEdit: mockOnEdit, }); mockMove([{ index: 2, isGuide: false, object: null }], props); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mockOnEdit).toHaveBeenCalledTimes(0); }); diff --git a/modules/edit-modes/test/lib/utils.test.ts b/modules/edit-modes/test/lib/utils.test.ts index f31606c51..d2fa79be8 100644 --- a/modules/edit-modes/test/lib/utils.test.ts +++ b/modules/edit-modes/test/lib/utils.test.ts @@ -85,28 +85,37 @@ const MultiPolygon = { }, }; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('toDeckColor()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('toDeckColor() - positive case', () => { const deckColor = toDeckColor([100, 90, 255, 1]); const expectedResult = [25500, 22950, 65025, 255]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(deckColor).toEqual(expectedResult); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('toDeckColor() - invalid color', () => { const deckColor = toDeckColor(123123); const expectedDefaultDeckColor = [255, 0, 0, 255]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(deckColor).toEqual(expectedDefaultDeckColor); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('recursivelyTraverseNestedArrays()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should not call function for point', () => { let callCount = 0; const callback = (array, prefix) => callCount++; recursivelyTraverseNestedArrays(Point.geometry.coordinates, [], callback); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(callCount).toBe(0); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should work for LineString', () => { const results = []; recursivelyTraverseNestedArrays(LineString.geometry.coordinates, [], (array, prefix) => { @@ -115,11 +124,15 @@ describe('recursivelyTraverseNestedArrays()', () => { prefix, }); }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(results.length).toBe(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].array)).toBe('[[102,0],[103,1],[104,0],[105,1]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].prefix)).toBe('[]'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should work for Polygon', () => { const results = []; recursivelyTraverseNestedArrays(Polygon.geometry.coordinates, [], (array, prefix) => { @@ -128,13 +141,19 @@ describe('recursivelyTraverseNestedArrays()', () => { prefix, }); }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(results.length).toBe(2); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].array)).toBe('[[35,10],[45,45],[15,40],[10,20],[35,10]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].prefix)).toBe('[0]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[1].array)).toBe('[[20,30],[35,35],[30,20],[20,30]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[1].prefix)).toBe('[1]'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should work for MultiPolygon', () => { const results = []; recursivelyTraverseNestedArrays(MultiPolygon.geometry.coordinates, [], (array, prefix) => { @@ -143,46 +162,68 @@ describe('recursivelyTraverseNestedArrays()', () => { prefix, }); }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(results.length).toBe(3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].array)).toBe('[[40,40],[20,45],[45,30],[40,40]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].prefix)).toBe('[0,0]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[1].array)).toBe( '[[20,35],[10,30],[10,10],[30,5],[45,20],[20,35]]' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[1].prefix)).toBe('[1,0]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[2].array)).toBe('[[30,20],[20,15],[20,25],[30,20]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[2].prefix)).toBe('[1,1]'); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('generatePointsParallelToLinePoints()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('generate Points Parallel to Line Points -- empty points', () => { const p1 = [0, 0]; const p2 = [0, 0]; // @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'number[]' is not assignable to p... Remove this comment to see the full error message const [p3, p4] = generatePointsParallelToLinePoints(p1, p2, [0, 0]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(p3).toEqual([0, 0]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(p4).toEqual([0, 0]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('generate Points Parallel to Line Points -- valid points', () => { const p1: Position = [-122.32, 37.81800998554937]; const p2: Position = [-122.37, 37.83386913944292]; const [p3, p4] = generatePointsParallelToLinePoints(p1, p2, [-124.5, 37.9]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(p3).toEqual([-123.14819346449626, 36.26988514860277]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(p4).toEqual([-123.09803547871964, 36.254027457172775]); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('nearestPointOnProjectedLine() and related functions', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('distance2d()', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(distance2d(0, 0, 0, 0)).toEqual(0); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(distance2d(0, 1, 0, 0)).toEqual(1); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('mix()', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mix(1, 2, 0)).toEqual(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mix(1, 2, 1)).toEqual(2); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('nearestPointOnProjectedLine()', () => { const line = { geometry: { @@ -203,31 +244,45 @@ describe('nearestPointOnProjectedLine() and related functions', () => { }; // @ts-expect-error ts-migrate(2345) FIXME: Argument of type '{ geometry: { coordinates: numbe... Remove this comment to see the full error message const result = nearestPointOnProjectedLine(line, inPoint, viewport); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.type).toEqual('Point'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates.length).toEqual(3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[0]).toBeCloseTo(0.5, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[1]).toBeCloseTo(0.5, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[2]).toBeCloseTo(0.5, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.properties.index).toEqual(0); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('nearestPointOnLine()', () => { const viewport = { project: (x) => x, unproject: (x) => x, }; + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('Correctly intersects line normal to slope of line', () => { // @ts-expect-error ts-migrate(2345) FIXME: Argument of type '{ type: string; geometry: { type... Remove this comment to see the full error message const result = nearestPointOnLine(LineString, Point, viewport); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.type).toEqual('Point'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates.length).toEqual(2); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[0]).toBeCloseTo(102.25, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[1]).toBeCloseTo(0.25, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.properties.index).toEqual(0); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('Snaps to the end when the point is past the end of the LineString', () => { const point = { type: 'Feature', @@ -238,10 +293,15 @@ describe('nearestPointOnLine()', () => { }; // @ts-expect-error ts-migrate(2345) FIXME: Argument of type '{ type: string; geometry: { type... Remove this comment to see the full error message const result = nearestPointOnLine(LineString, point, viewport); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.type).toEqual('Point'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates.length).toEqual(2); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[0]).toBeCloseTo(102.0, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[1]).toBeCloseTo(0.0, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.properties.index).toEqual(0); }); }); diff --git a/modules/edit-modes/test/test-utils.ts b/modules/edit-modes/test/test-utils.ts index 65aed3b98..f0d5c4d13 100644 --- a/modules/edit-modes/test/test-utils.ts +++ b/modules/edit-modes/test/test-utils.ts @@ -335,6 +335,7 @@ export function createStartDraggingEvent( pointerDownPicks: null, pointerDownScreenCoords: [-1, -1], pointerDownMapCoords, + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. cancelPan: jest.fn(), sourceEvent: null, }; @@ -372,6 +373,7 @@ export function createPointerMoveEvent(mapCoords?: Position, picks?: Pick[]): Po pointerDownPicks: null, pointerDownScreenCoords: null, pointerDownMapCoords: null, + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. cancelPan: jest.fn(), sourceEvent: null, }; @@ -386,7 +388,9 @@ export function createFeatureCollectionProps( selectedIndexes: [], lastPointerMoveEvent: createPointerMoveEvent(), modeConfig: null, + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. onEdit: jest.fn(), + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'jest'. onUpdateCursor: jest.fn(), ...overrides, }; diff --git a/modules/editor/test/exporter.test.ts b/modules/editor/test/exporter.test.ts index ca5d67853..5c8e230b7 100644 --- a/modules/editor/test/exporter.test.ts +++ b/modules/editor/test/exporter.test.ts @@ -7,6 +7,7 @@ import { createRandomFeature } from './utils/test-features'; let feature: Feature; let featureCollection: FeatureCollection; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { feature = createRandomFeature(); feature.properties.name = 'My Feature'; @@ -21,7 +22,9 @@ beforeEach(() => { }; }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('toGeoJson()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('feature', () => { const expectedFilename = `myfile.geojson`; const expectedMimeType = 'application/json'; @@ -29,12 +32,16 @@ describe('toGeoJson()', () => { const actual = toGeoJson(feature, 'myfile'); const actualParsed = JSON.parse(actual.data); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.filename).toEqual(expectedFilename); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.mimetype).toEqual(expectedMimeType); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualParsed.properties.name).toEqual(feature.properties.name); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('feature collection', () => { const expectedFilename = `geojsonFeatures.geojson`; const expectedMimeType = 'application/json'; @@ -42,30 +49,40 @@ describe('toGeoJson()', () => { const actual = toGeoJson(featureCollection, 'geojsonFeatures'); const actualParsed: FeatureCollection = JSON.parse(actual.data); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.filename).toEqual(expectedFilename); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.mimetype).toEqual(expectedMimeType); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actualParsed.features[0].properties.name).toEqual( featureCollection.features[0].properties.name ); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('toKml()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('feature', () => { const expectedFilename = `myfile.kml`; const expectedMimeType = 'application/xml'; const actual = toKml(feature, 'myfile'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.filename).toEqual(expectedFilename); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.mimetype).toEqual(expectedMimeType); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.data).toContain(`${feature.properties.name}`); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('toWkt()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('feature', () => { const expectedFilename = `llamallama.wkt`; const expectedMimeType = 'text/plain'; @@ -90,11 +107,15 @@ describe('toWkt()', () => { 'llamallama' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.filename).toEqual(expectedFilename); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.mimetype).toEqual(expectedMimeType); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.data).toEqual(expectedData); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('feature collection', () => { const expectedFilename = `geojsonFeatures.wkt`; const expectedMimeType = 'text/plain'; @@ -141,11 +162,15 @@ describe('toWkt()', () => { 'geojsonFeatures' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.filename).toEqual(expectedFilename); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.mimetype).toEqual(expectedMimeType); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.data).toEqual(expectedData); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('empty feature collection', () => { const expectedFilename = `geojsonFeatures.wkt`; const expectedMimeType = 'text/plain'; @@ -160,13 +185,18 @@ describe('toWkt()', () => { 'geojsonFeatures' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.filename).toEqual(expectedFilename); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.mimetype).toEqual(expectedMimeType); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.data).toEqual(expectedData); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('toStats()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('when feature', () => { const expectedFilename = `mystats.txt`; const expectedMimeType = 'text/plain'; @@ -191,11 +221,15 @@ describe('toStats()', () => { 'mystats' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.filename).toEqual(expectedFilename); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.mimetype).toEqual(expectedMimeType); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.data).toEqual(expectedData); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('feature collection', () => { const expectedFilename = `mystats.txt`; const expectedMimeType = 'text/plain'; @@ -258,8 +292,11 @@ describe('toStats()', () => { 'mystats' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.filename).toEqual(expectedFilename); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.mimetype).toEqual(expectedMimeType); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(actual.data).toEqual(expectedData); }); }); diff --git a/modules/editor/test/importer.test.ts b/modules/editor/test/importer.test.ts index 760fb07a9..ed0f97824 100644 --- a/modules/editor/test/importer.test.ts +++ b/modules/editor/test/importer.test.ts @@ -17,6 +17,7 @@ import { let feature: Feature; let featureCollection: FeatureCollection; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(() => { feature = createRandomFeature(); @@ -27,67 +28,95 @@ beforeEach(() => { }; }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('parseImport()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('GeoJSON Feature string', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { importData = await parseImport(JSON.stringify(feature)); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('parses feature', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(true); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.type).toEqual('GeoJSON'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features[0].properties.name).toEqual(feature.properties.name); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('GeoJSON FeatureCollection string', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { importData = await parseImport(JSON.stringify(featureCollection)); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('parses features', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(true); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.type).toEqual('GeoJSON'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features.map((f) => f.properties.name)).toEqual( featureCollection.features.map((f) => f.properties.name) ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features.map((f) => f.geometry)).toEqual( featureCollection.features.map((f) => f.geometry) ); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('KML string', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { importData = await parseImport(toKml(featureCollection, 'filename').data); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('parses features', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(true); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.type).toEqual('KML'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features.map((f) => f.geometry)).toEqual( featureCollection.features.map((f) => f.geometry) ); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('WKT string', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { importData = await parseImport('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('parses features', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(true); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.type).toEqual('WKT'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features.length).toEqual(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features[0].properties).toEqual({}); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features[0].geometry).toEqual({ type: 'Polygon', coordinates: [ @@ -103,8 +132,10 @@ describe('parseImport()', () => { }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('GeoJSON file', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { const file = new File([JSON.stringify(feature)], 'my.geojson', { type: 'text/plain;charset=utf-8;', @@ -112,18 +143,25 @@ describe('parseImport()', () => { importData = await parseImport(file); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('parses feature', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(true); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.type).toEqual('GeoJSON'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features[0].properties.name).toEqual(feature.properties.name); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('GeometryCollection', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('only single geometry', () => { let polygon; let geometryCollection; let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { polygon = createRandomPolygon(); geometryCollection = { @@ -136,18 +174,24 @@ describe('parseImport()', () => { importData = await parseImport(JSON.stringify(feature)); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('obtains single geometry', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(true); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features.length).toEqual(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features[0].geometry).toEqual(polygon); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('only Polygons', () => { let multiPolygon; let geometryCollection; let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { multiPolygon = createRandomMultiPolygon(); geometryCollection = { @@ -163,18 +207,24 @@ describe('parseImport()', () => { importData = await parseImport(JSON.stringify(feature)); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('combines into MultiPolygon', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(true); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features.length).toEqual(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features[0].geometry).toEqual(multiPolygon); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('only LineString', () => { let multiLineString; let geometryCollection; let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { multiLineString = createRandomMultiLineString(); geometryCollection = { @@ -190,24 +240,34 @@ describe('parseImport()', () => { importData = await parseImport(JSON.stringify(feature)); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('combines into MultiLineString', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(true); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features.length).toEqual(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.features[0].geometry).toEqual(multiLineString); }); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('negative tests', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('Invalid JSON', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { importData = await parseImport('{abc'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('reports error', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(false); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.validationErrors).toEqual([ 'Error parsing GeoJSON', 'SyntaxError: Unexpected token a in JSON at position 1', @@ -215,14 +275,19 @@ describe('parseImport()', () => { }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('Invalid GeoJSON', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { importData = await parseImport('{}'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('reports error', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(false); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.validationErrors).toEqual([ 'Error parsing GeoJSON', `Error: GeoJSON must have type of 'Feature' or 'FeatureCollection'`, @@ -230,50 +295,67 @@ describe('parseImport()', () => { }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('Invalid KML: togeojson throws', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { + // @ts-expect-error ts-migrate(2591) FIXME: Cannot find name 'require'. Do you need to install... Remove this comment to see the full error message const togeojson = require('@tmcw/togeojson'); // eslint-disable-line sinon.replace(togeojson, 'kml', sinon.fake.throws(Error('barf'))); importData = await parseImport(' { sinon.restore(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('reports error', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(false); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.validationErrors).toEqual(['Error parsing KML', 'Error: barf']); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('Invalid KML: togeojson returns undefined', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { + // @ts-expect-error ts-migrate(2591) FIXME: Cannot find name 'require'. Do you need to install... Remove this comment to see the full error message const togeojson = require('@tmcw/togeojson'); // eslint-disable-line sinon.replace(togeojson, 'kml', sinon.fake.returns(undefined)); importData = await parseImport(''); }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'afterEach'. afterEach(() => { sinon.restore(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('reports error', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(false); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.validationErrors).toEqual(['Invalid KML']); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('Invalid KML: togeojson returns blank FeatureCollection', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { + // @ts-expect-error ts-migrate(2591) FIXME: Cannot find name 'require'. Do you need to install... Remove this comment to see the full error message const togeojson = require('@tmcw/togeojson'); // eslint-disable-line sinon.replace( togeojson, @@ -284,44 +366,60 @@ describe('parseImport()', () => { importData = await parseImport(''); }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'afterEach'. afterEach(() => { sinon.restore(); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('reports error', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(false); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.validationErrors).toEqual(['Invalid KML']); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('Invalid WKT', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { importData = await parseImport('POLYGON(zzz)'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('reports error', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(false); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.validationErrors).toEqual(['Invalid WKT']); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('Unknown type', () => { let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { importData = await parseImport('abc'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('reports error', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(false); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.validationErrors).toEqual([`Unknown data format`]); }); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('GeometryCollection with mixed types', () => { let geometryCollection; let importData: any; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'beforeEach'. beforeEach(async () => { geometryCollection = { type: 'GeometryCollection', @@ -333,8 +431,11 @@ describe('parseImport()', () => { importData = await parseImport(JSON.stringify(feature)); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('combines into MultiPolygon', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.valid).toEqual(false); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(importData.validationErrors).toEqual([ 'Error parsing GeoJSON', 'Error: GeometryCollection geometry type not yet supported', diff --git a/modules/layers/src/layers/path-outline-layer/path-outline-layer.ts b/modules/layers/src/layers/path-outline-layer/path-outline-layer.ts index 54dc1b79d..693b29c21 100644 --- a/modules/layers/src/layers/path-outline-layer/path-outline-layer.ts +++ b/modules/layers/src/layers/path-outline-layer/path-outline-layer.ts @@ -61,13 +61,13 @@ export default class PathOutlineLayer extends PathLayer { draw({ moduleParameters = {}, parameters, uniforms, context }) { // Need to calculate same uniforms as base layer const { - // @ts-expect-error rounded + // @ts-expect-error ts-migrate(2339) FIXME: Property 'rounded' does not exist on type 'PathLay... Remove this comment to see the full error message rounded, miterLimit, widthScale, widthMinPixels, widthMaxPixels, - // @ts-expect-error dashJustified + // @ts-expect-error ts-migrate(2339) FIXME: Property 'dashJustified' does not exist on type 'P... Remove this comment to see the full error message dashJustified, } = this.props; diff --git a/modules/layers/src/utils.ts b/modules/layers/src/utils.ts index 74f513ff9..46e480eef 100644 --- a/modules/layers/src/utils.ts +++ b/modules/layers/src/utils.ts @@ -117,7 +117,7 @@ export function nearestPointOnProjectedLine( // Project the line to viewport, then find the nearest point const coordinates: Array> = line.geometry.coordinates as any; const projectedCoords = coordinates.map(([x, y, z = 0]) => wmViewport.project([x, y, z])); - // @ts-expect-error ts-migrate(2488) FIXME: Type 'never' must have a '[Symbol.iterator]()' met... Remove this comment to see the full error message + // @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call. const [x, y] = wmViewport.project(inPoint.geometry.coordinates); // console.log('projectedCoords', JSON.stringify(projectedCoords)); diff --git a/modules/layers/test/dependencies.test.ts b/modules/layers/test/dependencies.test.ts index c6c362eb0..b3be056ac 100644 --- a/modules/layers/test/dependencies.test.ts +++ b/modules/layers/test/dependencies.test.ts @@ -1,10 +1,14 @@ +// @ts-expect-error ts-migrate(2307) FIXME: Cannot find module 'fs' or its corresponding type ... Remove this comment to see the full error message import { readFileSync, readdirSync, existsSync } from 'fs'; const RESOLVED_REGEX = /^resolved/gi; const NOT_ALLOWED_REPO = 'unpm.u'; +// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name '__dirname'. const EXAMPLES_DIR = `${__dirname}/../../../examples`; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it(`Ensure yarn.lock doesn't contain ${NOT_ALLOWED_REPO}`, () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name '__dirname'. const rootLockFile = `${__dirname}/../../../yarn.lock`; const exampleLockFiles = readdirSync(`${EXAMPLES_DIR}`) .map((example) => `${EXAMPLES_DIR}/${example}/yarn.lock`) @@ -15,6 +19,7 @@ it(`Ensure yarn.lock doesn't contain ${NOT_ALLOWED_REPO}`, () => { contents.forEach((line) => { if (line.trim().match(RESOLVED_REGEX)) { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(line).not.toEqual(expect.stringContaining(NOT_ALLOWED_REPO)); } }); diff --git a/modules/layers/test/lib/curve-utils.test.ts b/modules/layers/test/lib/curve-utils.test.ts index 745799f92..c3646cc40 100644 --- a/modules/layers/test/lib/curve-utils.test.ts +++ b/modules/layers/test/lib/curve-utils.test.ts @@ -15,8 +15,10 @@ const POLYLINE: Feature = { }, }; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('test generateCurveFromControlPoints', () => { // @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'FeatureOf' is not as... Remove this comment to see the full error message const result = generateCurveFromControlPoints(POLYLINE); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result).toMatchSnapshot(); }); diff --git a/modules/layers/test/lib/layers/elevated-edit-handle-layer.test.ts b/modules/layers/test/lib/layers/elevated-edit-handle-layer.test.ts index 6d939b100..75f195f57 100644 --- a/modules/layers/test/lib/layers/elevated-edit-handle-layer.test.ts +++ b/modules/layers/test/lib/layers/elevated-edit-handle-layer.test.ts @@ -2,12 +2,16 @@ import ElevatedEditHandleLayer from '../../../src/layers/elevated-edit-handle-layer'; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('ElevatedEditHandleLayer tests', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message test('renderLayers()', () => { // @ts-expect-error ts-migrate(2555) FIXME: Expected at least 1 arguments, but got 0. const layer = new ElevatedEditHandleLayer(); const render = layer.renderLayers(); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(Array.isArray(render)).toBeTruthy(); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(render.length).toBe(2); }); }); diff --git a/modules/layers/test/lib/math.test.ts b/modules/layers/test/lib/math.test.ts index 8e49caa01..3cfa382cd 100644 --- a/modules/layers/test/lib/math.test.ts +++ b/modules/layers/test/lib/math.test.ts @@ -1,19 +1,29 @@ import { convertE7Array, toDegree, toRadian } from '../../src/math'; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('test toDegree()', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(toDegree(Math.PI / 4)).toBe(45); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(toDegree(Math.PI / 2)).toBe(90); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(toDegree((Math.PI * 3) / 2)).toBe(270); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('test toRadian()', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(toRadian(45)).toBe(Math.PI / 4); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(toRadian(90)).toBe(Math.PI / 2); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(toRadian(270)).toBe((Math.PI * 3) / 2); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('test convertE7Array()', () => { const points = [378034847, -1224078182, 378039091, -1224079046]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(convertE7Array(points)).toEqual([ [-122.4078182, 37.8034847], [-122.4079046, 37.8039091], diff --git a/modules/layers/test/lib/utils.test.ts b/modules/layers/test/lib/utils.test.ts index 7c3154e9f..07e6da278 100644 --- a/modules/layers/test/lib/utils.test.ts +++ b/modules/layers/test/lib/utils.test.ts @@ -90,28 +90,37 @@ const MultiPolygon = { }, }; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('toDeckColor()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('toDeckColor() - positive case', () => { const deckColor = toDeckColor([100, 90, 255, 1]); const expectedResult = [25500, 22950, 65025, 255]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(deckColor).toEqual(expectedResult); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('toDeckColor() - invalid color', () => { const deckColor = toDeckColor(123123); const expectedDefaultDeckColor = [255, 0, 0, 255]; + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(deckColor).toEqual(expectedDefaultDeckColor); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('recursivelyTraverseNestedArrays()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should not call function for point', () => { let callCount = 0; const callback = (array, prefix) => callCount++; recursivelyTraverseNestedArrays(Point.geometry.coordinates, [], callback); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(callCount).toBe(0); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should work for LineString', () => { const results = []; recursivelyTraverseNestedArrays(LineString.geometry.coordinates, [], (array, prefix) => { @@ -120,11 +129,15 @@ describe('recursivelyTraverseNestedArrays()', () => { prefix, }); }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(results.length).toBe(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].array)).toBe('[[102,0],[103,1],[104,0],[105,1]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].prefix)).toBe('[]'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should work for Polygon', () => { const results = []; recursivelyTraverseNestedArrays(Polygon.geometry.coordinates, [], (array, prefix) => { @@ -133,13 +146,19 @@ describe('recursivelyTraverseNestedArrays()', () => { prefix, }); }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(results.length).toBe(2); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].array)).toBe('[[35,10],[45,45],[15,40],[10,20],[35,10]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].prefix)).toBe('[0]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[1].array)).toBe('[[20,30],[35,35],[30,20],[20,30]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[1].prefix)).toBe('[1]'); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should work for MultiPolygon', () => { const results = []; recursivelyTraverseNestedArrays(MultiPolygon.geometry.coordinates, [], (array, prefix) => { @@ -148,45 +167,67 @@ describe('recursivelyTraverseNestedArrays()', () => { prefix, }); }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(results.length).toBe(3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].array)).toBe('[[40,40],[20,45],[45,30],[40,40]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[0].prefix)).toBe('[0,0]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[1].array)).toBe( '[[20,35],[10,30],[10,10],[30,5],[45,20],[20,35]]' ); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[1].prefix)).toBe('[1,0]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[2].array)).toBe('[[30,20],[20,15],[20,25],[30,20]]'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(JSON.stringify(results[2].prefix)).toBe('[1,1]'); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('generatePointsParallelToLinePoints()', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('generate Points Parallel to Line Points -- empty points', () => { const p1: Position = [0, 0]; const p2: Position = [0, 0]; const [p3, p4] = generatePointsParallelToLinePoints(p1, p2, [0, 0]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(p3).toEqual([0, 0]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(p4).toEqual([0, 0]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('generate Points Parallel to Line Points -- valid points', () => { const p1: Position = [-122.32, 37.81800998554937]; const p2: Position = [-122.37, 37.83386913944292]; const [p3, p4] = generatePointsParallelToLinePoints(p1, p2, [-124.5, 37.9]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(p3).toEqual([-123.14819346449626, 36.26988514860277]); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(p4).toEqual([-123.09803547871964, 36.254027457172775]); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('nearestPointOnProjectedLine() and related functions', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('distance2d()', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(distance2d(0, 0, 0, 0)).toEqual(0); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(distance2d(0, 1, 0, 0)).toEqual(1); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('mix()', () => { + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mix(1, 2, 0)).toEqual(1); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(mix(1, 2, 1)).toEqual(2); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('nearestPointOnProjectedLine()', () => { const line: FeatureOf = { type: 'Feature', @@ -211,11 +252,17 @@ describe('nearestPointOnProjectedLine() and related functions', () => { unproject: (x) => x, }; const result = nearestPointOnProjectedLine(line, inPoint, viewport); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.type).toEqual('Point'); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates.length).toEqual(3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[0]).toBeCloseTo(0.5, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[1]).toBeCloseTo(0.5, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.geometry.coordinates[2]).toBeCloseTo(0.5, 3); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(result.properties.index).toEqual(0); }); }); diff --git a/modules/overlays/test/html-overlay.test.tsx b/modules/overlays/test/html-overlay.test.tsx index d4bc1b7db..765a5c6c7 100644 --- a/modules/overlays/test/html-overlay.test.tsx +++ b/modules/overlays/test/html-overlay.test.tsx @@ -8,41 +8,17 @@ import { createHeadlessContext } from '@luma.gl/test-utils'; import HtmlOverlay from '../src/html-overlay'; import HtmlOverlayItem from '../src/html-overlay-item'; -/* -const initialViewState = { - longitude: 0, - latitude: 0, - zoom: 10, - pitch: 0, - bearing: 0, -}; - -it('test HtmlOverlay map center', () => { - const Component = ( - // @ts-ignore - - - Map Center Zero Elevation - Map Center 50km Elevation - - - ); - const renderer = Renderer.create(Component); - expect(renderer.toJSON()).toMatchSnapshot(); -}); -*/ - +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('HtmlOverlay is able to handle a single null child', () => { const layer = new HtmlOverlay({ viewport: { project: (coords) => coords }, }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(layer.render()).toMatchSnapshot(); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('HtmlOverlay is able to handle a null child with other valid children', () => { const children = [ @@ -58,10 +34,13 @@ it('HtmlOverlay is able to handle a null child with other valid children', () => children, viewport: { project: (coords) => coords }, }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(layer.render()).toMatchSnapshot(); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('HtmlOverlay is able to handle no children', () => { const layer = new HtmlOverlay({ viewport: { project: (coords) => coords } }); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(layer.render()).toMatchSnapshot(); }); diff --git a/modules/overlays/test/html-tooltip-overlay.test.tsx b/modules/overlays/test/html-tooltip-overlay.test.tsx index cb0456eae..b8e871cbf 100644 --- a/modules/overlays/test/html-tooltip-overlay.test.tsx +++ b/modules/overlays/test/html-tooltip-overlay.test.tsx @@ -1,4 +1,4 @@ -// @ts-ignore +// @ts-expect-error ts-migrate(6133) FIXME: 'React' is declared but its value is never read. // eslint-disable-next-line no-unused-vars import React from 'react'; /* @@ -9,16 +9,8 @@ import DeckGL from '@deck.gl/react'; import HtmlTooltipOverlay from '../src/html-tooltip-overlay'; */ +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('test HtmlTooltipOverlay no items shown', () => { - /* - const Component = ( - // @ts-ignore - - - - ); - const renderer = Renderer.create(Component); - expect(renderer.toJSON()).toMatchSnapshot(); -*/ + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(true).toBe(true); }); diff --git a/modules/react-map-gl-draw/test/utils.spec.ts b/modules/react-map-gl-draw/test/utils.spec.ts index 97b023d7f..de8d7e89e 100644 --- a/modules/react-map-gl-draw/test/utils.spec.ts +++ b/modules/react-map-gl-draw/test/utils.spec.ts @@ -3,7 +3,9 @@ import { Position } from '@nebula.gl/edit-modes'; import { findClosestPointOnLineSegment, isNumeric } from '../src/edit-modes/utils'; +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('findClosestPointOnLineSegment', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should return null when point on the line and out of bounds', () => { const p1: Position = [1, 0]; const p2: Position = [0, 0]; @@ -11,9 +13,11 @@ describe('findClosestPointOnLineSegment', () => { const point = findClosestPointOnLineSegment(p1, p2, p); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(point).toBe(null); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should return null when line vertical and point out of bounds', () => { const p1: Position = [0, 0]; const p2: Position = [0, 1]; @@ -21,9 +25,11 @@ describe('findClosestPointOnLineSegment', () => { const point = findClosestPointOnLineSegment(p1, p2, p); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(point).toBe(null); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should return expected when line vertical', () => { const p1: Position = [0, 0]; const p2: Position = [2, 0]; @@ -31,9 +37,11 @@ describe('findClosestPointOnLineSegment', () => { const point = findClosestPointOnLineSegment(p1, p2, p); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(point).toEqual([1, 0]); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should return null when point out of bounds', () => { const p1: Position = [1, 0]; const p2: Position = [3, 5]; @@ -41,9 +49,11 @@ describe('findClosestPointOnLineSegment', () => { const point = findClosestPointOnLineSegment(p1, p2, p); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(point).toBe(null); }); + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should return expected', () => { const p1: Position = [1, 0]; const p2: Position = [3, 5]; @@ -51,17 +61,21 @@ describe('findClosestPointOnLineSegment', () => { const point = findClosestPointOnLineSegment(p1, p2, p); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(point).toEqual([2.1724137931034484, 2.931034482758621]); }); }); +// @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message describe('isNumeric', () => { + // @ts-expect-error ts-migrate(2593) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message it('should match expect', () => { const testCases = [null, undefined, '', 'a', [], [1], '1', '1.1', 1, 1.1]; const expected = [false, false, false, false, false, false, true, true, true, true]; const results = testCases.map((t) => isNumeric(t)); + // @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'. expect(results).toEqual(expected); }); }); diff --git a/yarn.lock b/yarn.lock index 988434c62..bff359613 100644 --- a/yarn.lock +++ b/yarn.lock @@ -51,15 +51,6 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.15.0.tgz#2dbaf8b85334796cafbb0f5793a90a2fc010b176" integrity sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA== -"@babel/compat-data@^7.8.6", "@babel/compat-data@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.9.0.tgz" - integrity sha512-zeFQrr+284Ekvd9e7KAX954LkapWiOmQtsfHirhxqfdlX6MEC32iRE+pqUGlYIBchdevaCwvzxWGSy/YBNI85g== - dependencies: - browserslist "^4.9.1" - invariant "^2.2.4" - semver "^5.5.0" - "@babel/core@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.1.0.tgz" @@ -100,7 +91,7 @@ semver "^6.3.0" source-map "^0.5.0" -"@babel/core@^7.7.5", "@babel/core@^7.9.0": +"@babel/core@^7.7.5": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.9.0.tgz" integrity sha512-kWc7L0fw1xwvI0zi8OKVBuxRVefwGOrKSQMvrQ3dW+bIIavBY3/NpXmpjMy7bQnLgwgzWQZ8TlM57YHpHNHz4w== @@ -180,31 +171,6 @@ "@babel/helper-explode-assignable-expression" "^7.15.4" "@babel/types" "^7.15.4" -"@babel/helper-builder-binary-assignment-operator-visitor@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz" - integrity sha512-5eFOm2SyFPK4Rh3XMMRDjN7lBH0orh3ss0g3rTYZnBQ+r6YPj7lgDyCvPphynHvUrobJmeMignBr6Acw9mAPlw== - dependencies: - "@babel/helper-explode-assignable-expression" "^7.8.3" - "@babel/types" "^7.8.3" - -"@babel/helper-builder-react-jsx-experimental@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx-experimental/-/helper-builder-react-jsx-experimental-7.9.0.tgz" - integrity sha512-3xJEiyuYU4Q/Ar9BsHisgdxZsRlsShMe90URZ0e6przL26CCs8NJbDoxH94kKT17PcxlMhsCAwZd90evCo26VQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.8.3" - "@babel/helper-module-imports" "^7.8.3" - "@babel/types" "^7.9.0" - -"@babel/helper-builder-react-jsx@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.9.0.tgz" - integrity sha512-weiIo4gaoGgnhff54GQ3P5wsUQmnSwpkvU0r6ZHq6TzoSzKy4JxHEgnxNytaKbov2a9z/CVNyzliuCOUPEX3Jw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.8.3" - "@babel/types" "^7.9.0" - "@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz#cf6d94f30fbefc139123e27dd6b02f65aeedb7b9" @@ -215,17 +181,6 @@ browserslist "^4.16.6" semver "^6.3.0" -"@babel/helper-compilation-targets@^7.8.7": - version "7.8.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.8.7.tgz" - integrity sha512-4mWm8DCK2LugIS+p1yArqvG1Pf162upsIsjE7cNBjez+NjliQpVhj20obE520nao0o14DaTnFJv+Fw5a0JpoUw== - dependencies: - "@babel/compat-data" "^7.8.6" - browserslist "^4.9.1" - invariant "^2.2.4" - levenary "^1.1.1" - semver "^5.5.0" - "@babel/helper-create-class-features-plugin@^7.14.5", "@babel/helper-create-class-features-plugin@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.15.4.tgz#7f977c17bd12a5fba363cb19bea090394bf37d2e" @@ -238,18 +193,6 @@ "@babel/helper-replace-supers" "^7.15.4" "@babel/helper-split-export-declaration" "^7.15.4" -"@babel/helper-create-class-features-plugin@^7.8.3": - version "7.8.6" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.8.6.tgz" - integrity sha512-klTBDdsr+VFFqaDHm5rR69OpEQtO2Qv8ECxHS1mNhJJvaHArR6a1xTf5K/eZW7eZpJbhCx3NW1Yt/sKsLXLblg== - dependencies: - "@babel/helper-function-name" "^7.8.3" - "@babel/helper-member-expression-to-functions" "^7.8.3" - "@babel/helper-optimise-call-expression" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/helper-replace-supers" "^7.8.6" - "@babel/helper-split-export-declaration" "^7.8.3" - "@babel/helper-create-regexp-features-plugin@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.14.5.tgz#c7d5ac5e9cf621c26057722fb7a8a4c5889358c4" @@ -267,15 +210,6 @@ "@babel/helper-regex" "^7.8.3" regexpu-core "^4.7.0" -"@babel/helper-define-map@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.8.3.tgz" - integrity sha512-PoeBYtxoZGtct3md6xZOCWPcKuMuk3IHhgxsRRNtnNShebf4C8YonTSblsK4tvDbm+eJAw2HAPOfCr+Q/YRG/g== - dependencies: - "@babel/helper-function-name" "^7.8.3" - "@babel/types" "^7.8.3" - lodash "^4.17.13" - "@babel/helper-define-polyfill-provider@^0.2.2": version "0.2.3" resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.3.tgz#0525edec5094653a282688d34d846e4c75e9c0b6" @@ -297,14 +231,6 @@ dependencies: "@babel/types" "^7.15.4" -"@babel/helper-explode-assignable-expression@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz" - integrity sha512-N+8eW86/Kj147bO9G2uclsg5pwfs/fqqY5rwgIL7eTBklgXjcOJ3btzS5iM6AitJcftnY7pm2lGsrJVYLGjzIw== - dependencies: - "@babel/traverse" "^7.8.3" - "@babel/types" "^7.8.3" - "@babel/helper-function-name@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz" @@ -360,13 +286,6 @@ dependencies: "@babel/types" "^7.15.4" -"@babel/helper-hoist-variables@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz" - integrity sha512-ky1JLOjcDUtSc+xkt0xhYff7Z6ILTAHKmZLHPxAhOP0Nd77O+3nCsd6uSVYur6nJnCI029CrNbYlc0LoPfAPQg== - dependencies: - "@babel/types" "^7.8.3" - "@babel/helper-member-expression-to-functions@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz#bfd34dc9bba9824a4658b0317ec2fd571a51e6ef" @@ -473,17 +392,6 @@ "@babel/helper-wrap-function" "^7.15.4" "@babel/types" "^7.15.4" -"@babel/helper-remap-async-to-generator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz" - integrity sha512-kgwDmw4fCg7AVgS4DukQR/roGp+jP+XluJE5hsRZwxCYGg+Rv9wSGErDWhlI90FODdYfd4xG4AQRiMDjjN0GzA== - dependencies: - "@babel/helper-annotate-as-pure" "^7.8.3" - "@babel/helper-wrap-function" "^7.8.3" - "@babel/template" "^7.8.3" - "@babel/traverse" "^7.8.3" - "@babel/types" "^7.8.3" - "@babel/helper-replace-supers@^7.14.5", "@babel/helper-replace-supers@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz#52a8ab26ba918c7f6dee28628b07071ac7b7347a" @@ -494,7 +402,7 @@ "@babel/traverse" "^7.15.4" "@babel/types" "^7.15.4" -"@babel/helper-replace-supers@^7.8.3", "@babel/helper-replace-supers@^7.8.6": +"@babel/helper-replace-supers@^7.8.6": version "7.8.6" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz" integrity sha512-PeMArdA4Sv/Wf4zXwBKPqVj7n9UF/xg6slNRtZW84FM7JpE1CbG8B612FyM4cxrf4fMAMGO0kR7voy1ForHHFA== @@ -572,16 +480,6 @@ "@babel/traverse" "^7.15.4" "@babel/types" "^7.15.4" -"@babel/helper-wrap-function@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz" - integrity sha512-LACJrbUET9cQDzb6kG7EeD7+7doC3JNvUgTEQOx2qaO1fKlzE/Bf05qs9w1oXQMmXlPO65lC3Tq9S6gZpTErEQ== - dependencies: - "@babel/helper-function-name" "^7.8.3" - "@babel/template" "^7.8.3" - "@babel/traverse" "^7.8.3" - "@babel/types" "^7.8.3" - "@babel/helpers@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.1.0.tgz" @@ -668,15 +566,6 @@ "@babel/helper-remap-async-to-generator" "^7.15.4" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-async-generator-functions@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz" - integrity sha512-NZ9zLv848JsV3hs8ryEh7Uaz/0KsmPLqv0+PdkDJL1cJy0K4kOCFa8zc1E3mp+RHPQcpdfb/6GovEsW4VDrOMw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/helper-remap-async-to-generator" "^7.8.3" - "@babel/plugin-syntax-async-generators" "^7.8.0" - "@babel/plugin-proposal-class-properties@7.14.5", "@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz#40d1ee140c5b1e31a350f4f5eed945096559b42e" @@ -685,14 +574,6 @@ "@babel/helper-create-class-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-proposal-class-properties@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.8.3.tgz" - integrity sha512-EqFhbo7IosdgPgZggHaNObkmO1kNUe3slaKu54d5OWvy+p9QIKOzK1GAEpAIsZtWVtPXUHSMcT4smvDrCfY4AA== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-proposal-class-static-block@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz#3e7ca6128453c089e8b477a99f970c63fc1cb8d7" @@ -710,14 +591,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-dynamic-import" "^7.8.3" -"@babel/plugin-proposal-dynamic-import@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz" - integrity sha512-NyaBbyLFXFLT9FP+zk0kYlUlA8XtCUbehs67F0nnEg7KICgMc2mNkIeu9TYhKzyXMkrapZFwAhXLdnt4IYHy1w== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-dynamic-import" "^7.8.0" - "@babel/plugin-proposal-export-default-from@7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.14.5.tgz#8931a6560632c650f92a8e5948f6e73019d6d321" @@ -726,14 +599,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-export-default-from" "^7.14.5" -"@babel/plugin-proposal-export-default-from@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.8.3.tgz" - integrity sha512-PYtv2S2OdCdp7GSPDg5ndGZFm9DmWFvuLoS5nBxZCgOBggluLnhTScspJxng96alHQzPyrrHxvC9/w4bFuspeA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-export-default-from" "^7.8.3" - "@babel/plugin-proposal-export-namespace-from@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz#dbad244310ce6ccd083072167d8cea83a52faf76" @@ -750,14 +615,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-json-strings" "^7.8.3" -"@babel/plugin-proposal-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz" - integrity sha512-KGhQNZ3TVCQG/MjRbAUwuH+14y9q0tpxs1nWWs3pbSleRdDro9SAMMDyye8HhY1gqZ7/NqIc8SKhya0wRDgP1Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-json-strings" "^7.8.0" - "@babel/plugin-proposal-logical-assignment-operators@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz#6e6229c2a99b02ab2915f82571e0cc646a40c738" @@ -774,14 +631,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" -"@babel/plugin-proposal-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz" - integrity sha512-TS9MlfzXpXKt6YYomudb/KU7nQI6/xnapG6in1uZxoxDghuSMZsPb6D2fyUwNYSAp4l1iR7QtFOjkqcRYcUsfw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0" - "@babel/plugin-proposal-numeric-separator@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz#83631bf33d9a51df184c2102a069ac0c58c05f18" @@ -790,14 +639,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-proposal-numeric-separator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.8.3.tgz" - integrity sha512-jWioO1s6R/R+wEHizfaScNsAx+xKgwTLNXSh7tTC4Usj3ItsPEhYkEpU4h+lpnBwq7NBVOJXfO6cRFYcX69JUQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.8.3" - "@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.15.6": version "7.15.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.15.6.tgz#ef68050c8703d07b25af402cb96cf7f34a68ed11" @@ -809,14 +650,6 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.15.4" -"@babel/plugin-proposal-object-rest-spread@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.9.0.tgz" - integrity sha512-UgqBv6bjq4fDb8uku9f+wcm1J7YxJ5nT7WO/jBr0cl0PLKb7t1O6RNR1kZbjgx2LQtsDI9hwoQVmn0yhXeQyow== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-object-rest-spread" "^7.8.0" - "@babel/plugin-proposal-optional-catch-binding@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz#939dd6eddeff3a67fdf7b3f044b5347262598c3c" @@ -825,14 +658,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-proposal-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz" - integrity sha512-0gkX7J7E+AtAw9fcwlVQj8peP61qhdg/89D5swOkjYbkboA2CVckn3kiyum1DE0wskGb7KJJxBdyEBApDLLVdw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.0" - "@babel/plugin-proposal-optional-chaining@^7.13.12", "@babel/plugin-proposal-optional-chaining@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz#fa83651e60a360e3f13797eef00b8d519695b603" @@ -842,14 +667,6 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.14.5" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -"@babel/plugin-proposal-optional-chaining@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.9.0.tgz" - integrity sha512-NDn5tu3tcv4W30jNhmc2hyD5c56G6cXx4TesJubhxrJeCvuuMpttxr0OnNCqbZGhFjLrg+NIhxxC+BK5F6yS3w== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.0" - "@babel/plugin-proposal-private-methods@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz#37446495996b2945f30f5be5b60d5e2aa4f5792d" @@ -876,7 +693,7 @@ "@babel/helper-create-regexp-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-proposal-unicode-property-regex@^7.4.4", "@babel/plugin-proposal-unicode-property-regex@^7.8.3": +"@babel/plugin-proposal-unicode-property-regex@^7.4.4": version "7.8.8" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz" integrity sha512-EVhjVsMpbhLw9ZfHWSx2iy13Q8Z/eg8e8ccVWt23sWQK5l1UdkoLJPN5w69UA4uITGBnEZD2JOe4QOHycYKv8A== @@ -884,7 +701,7 @@ "@babel/helper-create-regexp-features-plugin" "^7.8.8" "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-async-generators@^7.8.0", "@babel/plugin-syntax-async-generators@^7.8.4": +"@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== @@ -912,7 +729,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-dynamic-import@^7.8.0", "@babel/plugin-syntax-dynamic-import@^7.8.3": +"@babel/plugin-syntax-dynamic-import@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== @@ -926,13 +743,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-export-default-from@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.8.3.tgz" - integrity sha512-a1qnnsr73KLNIQcQlcQ4ZHxqqfBKM6iNQZW2OMTyxNbA2WC7SHWHtGVpFzWtQAuS2pspkWVzdEBXXx8Ik0Za4w== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-export-namespace-from@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a" @@ -947,7 +757,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-json-strings@^7.8.0", "@babel/plugin-syntax-json-strings@^7.8.3": +"@babel/plugin-syntax-json-strings@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== @@ -961,13 +771,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-jsx@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.8.3.tgz" - integrity sha512-WxdW9xyLgBdefoo0Ynn3MRSkhe5tFVxxKNVdnZSh318WrG2e2jH+E9wd/++JsqcLJZPfz87njQJ8j2Upjm0M0A== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" @@ -975,7 +778,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": +"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== @@ -989,13 +792,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-numeric-separator@^7.8.0", "@babel/plugin-syntax-numeric-separator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.8.3.tgz" - integrity sha512-H7dCMAdN83PcCmqmkHB5dtp+Xa9a6LKSvA2hiFBC/5alSHxM5VgWZXFqDi0YFe8XNGT6iCa+z4V4zSt/PdZ7Dw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-object-rest-spread@^7.0.0": version "7.2.0" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz" @@ -1003,21 +799,21 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-syntax-object-rest-spread@^7.8.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": +"@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-catch-binding@^7.8.0", "@babel/plugin-syntax-optional-catch-binding@^7.8.3": +"@babel/plugin-syntax-optional-catch-binding@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-chaining@^7.8.0", "@babel/plugin-syntax-optional-chaining@^7.8.3": +"@babel/plugin-syntax-optional-chaining@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== @@ -1038,13 +834,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-top-level-await@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz" - integrity sha512-kwj1j9lL/6Wd0hROD3b/OZZ7MSrZLqqn9RAZ5+cYYsflQ9HZBIKCUkr3+uL1MEJ1NePiUbf98jjiMQSv0NMR9g== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-typescript@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.14.5.tgz#b82c6ce471b165b5ce420cf92914d6fb46225716" @@ -1052,13 +841,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-typescript@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.8.3.tgz" - integrity sha512-GO1MQ/SGGGoiEXY0e0bSpHimJvxqB7lktLLIq2pv8xG7WZ8IMEle74jIe1FhprHBWjwjZtXHkycDLZXIWM5Wfg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-arrow-functions@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz#f7187d9588a768dd080bf4c9ffe117ea62f7862a" @@ -1066,13 +848,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-arrow-functions@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz" - integrity sha512-0MRF+KC8EqH4dbuITCWwPSzsyO3HIWWlm30v8BbbpOrS1B++isGxPnnuq/IZvOX5J2D/p7DQalQm+/2PnlKGxg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-async-to-generator@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz#72c789084d8f2094acb945633943ef8443d39e67" @@ -1082,15 +857,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-remap-async-to-generator" "^7.14.5" -"@babel/plugin-transform-async-to-generator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz" - integrity sha512-imt9tFLD9ogt56Dd5CI/6XgpukMwd/fLGSrix2httihVe7LOGVPhyhMh1BU5kDM7iHD08i8uUtmV2sWaBFlHVQ== - dependencies: - "@babel/helper-module-imports" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/helper-remap-async-to-generator" "^7.8.3" - "@babel/plugin-transform-block-scoped-functions@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz#e48641d999d4bc157a67ef336aeb54bc44fd3ad4" @@ -1098,13 +864,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-block-scoped-functions@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz" - integrity sha512-vo4F2OewqjbB1+yaJ7k2EJFHlTP3jR634Z9Cj9itpqNjuLXvhlVxgnjsHsdRgASR8xYDrx6onw4vW5H6We0Jmg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-block-scoping@^7.15.3": version "7.15.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.15.3.tgz#94c81a6e2fc230bcce6ef537ac96a1e4d2b3afaf" @@ -1112,14 +871,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-block-scoping@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz" - integrity sha512-pGnYfm7RNRgYRi7bids5bHluENHqJhrV4bCZRwc5GamaWIIs07N4rZECcmJL6ZClwjDz1GbdMZFtPs27hTB06w== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - lodash "^4.17.13" - "@babel/plugin-transform-classes@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.15.4.tgz#50aee17aaf7f332ae44e3bce4c2e10534d5d3bf1" @@ -1133,20 +884,6 @@ "@babel/helper-split-export-declaration" "^7.15.4" globals "^11.1.0" -"@babel/plugin-transform-classes@^7.9.0": - version "7.9.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.9.2.tgz" - integrity sha512-TC2p3bPzsfvSsqBZo0kJnuelnoK9O3welkUpqSqBQuBF6R5MN2rysopri8kNvtlGIb2jmUO7i15IooAZJjZuMQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.8.3" - "@babel/helper-define-map" "^7.8.3" - "@babel/helper-function-name" "^7.8.3" - "@babel/helper-optimise-call-expression" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/helper-replace-supers" "^7.8.6" - "@babel/helper-split-export-declaration" "^7.8.3" - globals "^11.1.0" - "@babel/plugin-transform-computed-properties@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz#1b9d78987420d11223d41195461cc43b974b204f" @@ -1154,13 +891,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-computed-properties@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz" - integrity sha512-O5hiIpSyOGdrQZRQ2ccwtTVkgUDBBiCuK//4RJ6UfePllUTCENOzKxfh6ulckXKc0DixTFLCfb2HVkNA7aDpzA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-destructuring@^7.14.7": version "7.14.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz#0ad58ed37e23e22084d109f185260835e5557576" @@ -1168,13 +898,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-destructuring@^7.8.3": - version "7.8.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.8.8.tgz" - integrity sha512-eRJu4Vs2rmttFCdhPUM3bV0Yo/xPSdPw6ML9KHs/bjB4bLA5HXlbvYXPOD5yASodGod+krjYx21xm1QmL8dCJQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-dotall-regex@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz#2f6bf76e46bdf8043b4e7e16cf24532629ba0c7a" @@ -1183,7 +906,7 @@ "@babel/helper-create-regexp-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-dotall-regex@^7.4.4", "@babel/plugin-transform-dotall-regex@^7.8.3": +"@babel/plugin-transform-dotall-regex@^7.4.4": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz" integrity sha512-kLs1j9Nn4MQoBYdRXH6AeaXMbEJFaFu/v1nQkvib6QzTj8MZI5OQzqmD83/2jEM1z0DLilra5aWO5YpyC0ALIw== @@ -1198,13 +921,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-duplicate-keys@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz" - integrity sha512-s8dHiBUbcbSgipS4SMFuWGqCvyge5V2ZeAWzR6INTVC3Ltjig/Vw1G2Gztv0vU/hRG9X8IvKvYdoksnUfgXOEQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-exponentiation-operator@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz#5154b8dd6a3dfe6d90923d61724bd3deeb90b493" @@ -1213,14 +929,6 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-exponentiation-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz" - integrity sha512-zwIpuIymb3ACcInbksHaNcR12S++0MDLKkiqXHl3AzpgdKlFNhog+z/K0+TGW+b0w5pgTq4H6IwV/WhxbGYSjQ== - dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-flow-strip-types@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.14.5.tgz#0dc9c1d11dcdc873417903d6df4bed019ef0f85e" @@ -1236,13 +944,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-for-of@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.9.0.tgz" - integrity sha512-lTAnWOpMwOXpyDx06N+ywmF3jNbafZEqZ96CGYabxHrxNX8l5ny7dt4bK/rGwAh9utyP2b2Hv7PlZh1AAS54FQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-function-name@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz#e81c65ecb900746d7f31802f6bed1f52d915d6f2" @@ -1251,14 +952,6 @@ "@babel/helper-function-name" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-function-name@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz" - integrity sha512-rO/OnDS78Eifbjn5Py9v8y0aR+aSYhDhqAwVfsTl0ERuMZyr05L1aFSCJnbv2mmsLkit/4ReeQ9N2BgLnOcPCQ== - dependencies: - "@babel/helper-function-name" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-literals@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz#41d06c7ff5d4d09e3cf4587bd3ecf3930c730f78" @@ -1266,13 +959,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-literals@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz" - integrity sha512-3Tqf8JJ/qB7TeldGl+TT55+uQei9JfYaregDcEAyBZ7akutriFrt6C/wLYIer6OYhleVQvH/ntEhjE/xMmy10A== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-member-expression-literals@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz#b39cd5212a2bf235a617d320ec2b48bcc091b8a7" @@ -1280,13 +966,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-member-expression-literals@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz" - integrity sha512-3Wk2EXhnw+rP+IDkK6BdtPKsUE5IeZ6QOGrPYvw52NwBStw9V1ZVzxgK6fSKSxqUvH9eQPR3tm3cOq79HlsKYA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-modules-amd@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz#4fd9ce7e3411cb8b83848480b7041d83004858f7" @@ -1296,15 +975,6 @@ "@babel/helper-plugin-utils" "^7.14.5" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-amd@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.9.0.tgz" - integrity sha512-vZgDDF003B14O8zJy0XXLnPH4sg+9X5hFBBGN1V+B2rgrB+J2xIypSN6Rk9imB2hSTHQi5OHLrFWsZab1GMk+Q== - dependencies: - "@babel/helper-module-transforms" "^7.9.0" - "@babel/helper-plugin-utils" "^7.8.3" - babel-plugin-dynamic-import-node "^2.3.0" - "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.4.tgz#8201101240eabb5a76c08ef61b2954f767b6b4c1" @@ -1315,16 +985,6 @@ "@babel/helper-simple-access" "^7.15.4" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-commonjs@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.9.0.tgz" - integrity sha512-qzlCrLnKqio4SlgJ6FMMLBe4bySNis8DFn1VkGmOcxG9gqEyPIOzeQrA//u0HAKrWpJlpZbZMPB1n/OPa4+n8g== - dependencies: - "@babel/helper-module-transforms" "^7.9.0" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/helper-simple-access" "^7.8.3" - babel-plugin-dynamic-import-node "^2.3.0" - "@babel/plugin-transform-modules-systemjs@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.15.4.tgz#b42890c7349a78c827719f1d2d0cd38c7d268132" @@ -1336,16 +996,6 @@ "@babel/helper-validator-identifier" "^7.14.9" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-systemjs@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.9.0.tgz" - integrity sha512-FsiAv/nao/ud2ZWy4wFacoLOm5uxl0ExSQ7ErvP7jpoihLR6Cq90ilOFyX9UXct3rbtKsAiZ9kFt5XGfPe/5SQ== - dependencies: - "@babel/helper-hoist-variables" "^7.8.3" - "@babel/helper-module-transforms" "^7.9.0" - "@babel/helper-plugin-utils" "^7.8.3" - babel-plugin-dynamic-import-node "^2.3.0" - "@babel/plugin-transform-modules-umd@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz#fb662dfee697cce274a7cda525190a79096aa6e0" @@ -1354,14 +1004,6 @@ "@babel/helper-module-transforms" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-modules-umd@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.9.0.tgz" - integrity sha512-uTWkXkIVtg/JGRSIABdBoMsoIeoHQHPTL0Y2E7xf5Oj7sLqwVsNXOkNk0VJc7vF0IMBsPeikHxFjGe+qmwPtTQ== - dependencies: - "@babel/helper-module-transforms" "^7.9.0" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-named-capturing-groups-regex@^7.14.9": version "7.14.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz#c68f5c5d12d2ebaba3762e57c2c4f6347a46e7b2" @@ -1369,13 +1011,6 @@ dependencies: "@babel/helper-create-regexp-features-plugin" "^7.14.5" -"@babel/plugin-transform-named-capturing-groups-regex@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz" - integrity sha512-f+tF/8UVPU86TrCb06JoPWIdDpTNSGGcAtaD9mLP0aYGA0OS0j7j7DHJR0GTFrUZPUU6loZhbsVZgTh0N+Qdnw== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.8.3" - "@babel/plugin-transform-new-target@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz#31bdae8b925dc84076ebfcd2a9940143aed7dbf8" @@ -1383,13 +1018,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-new-target@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz" - integrity sha512-QuSGysibQpyxexRyui2vca+Cmbljo8bcRckgzYV4kRIsHpVeyeC3JDO63pY+xFZ6bWOBn7pfKZTqV4o/ix9sFw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-object-super@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz#d0b5faeac9e98597a161a9cf78c527ed934cdc45" @@ -1398,14 +1026,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-replace-supers" "^7.14.5" -"@babel/plugin-transform-object-super@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz" - integrity sha512-57FXk+gItG/GejofIyLIgBKTas4+pEU47IXKDBWFTxdPd7F80H8zybyAY7UoblVfBhBGs2EKM+bJUu2+iUYPDQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/helper-replace-supers" "^7.8.3" - "@babel/plugin-transform-parameters@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.15.4.tgz#5f2285cc3160bf48c8502432716b48504d29ed62" @@ -1413,14 +1033,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-parameters@^7.8.7": - version "7.9.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.9.3.tgz" - integrity sha512-fzrQFQhp7mIhOzmOtPiKffvCYQSK10NR8t6BBz2yPbeUHb9OLW8RZGtgDRBn8z2hGcwvKDL3vC7ojPTLNxmqEg== - dependencies: - "@babel/helper-get-function-arity" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-property-literals@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz#0ddbaa1f83db3606f1cdf4846fa1dfb473458b34" @@ -1428,13 +1040,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-property-literals@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz" - integrity sha512-uGiiXAZMqEoQhRWMK17VospMZh5sXWg+dlh2soffpkAl96KAm+WZuJfa6lcELotSRmooLqg0MWdH6UUq85nmmg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-react-display-name@^7.14.5": version "7.15.1" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.15.1.tgz#6aaac6099f1fcf6589d35ae6be1b6e10c8c602b9" @@ -1442,13 +1047,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-react-display-name@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.8.3.tgz" - integrity sha512-3Jy/PCw8Fe6uBKtEgz3M82ljt+lTg+xJaM4og+eyu83qLT87ZUSckn0wy7r31jflURWLO83TW6Ylf7lyXj3m5A== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-react-jsx-development@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.14.5.tgz#1a6c73e2f7ed2c42eebc3d2ad60b0c7494fcb9af" @@ -1456,31 +1054,6 @@ dependencies: "@babel/plugin-transform-react-jsx" "^7.14.5" -"@babel/plugin-transform-react-jsx-development@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.9.0.tgz" - integrity sha512-tK8hWKrQncVvrhvtOiPpKrQjfNX3DtkNLSX4ObuGcpS9p0QrGetKmlySIGR07y48Zft8WVgPakqd/bk46JrMSw== - dependencies: - "@babel/helper-builder-react-jsx-experimental" "^7.9.0" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-jsx" "^7.8.3" - -"@babel/plugin-transform-react-jsx-self@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.9.0.tgz" - integrity sha512-K2ObbWPKT7KUTAoyjCsFilOkEgMvFG+y0FqOl6Lezd0/13kMkkjHskVsZvblRPj1PHA44PrToaZANrryppzTvQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-jsx" "^7.8.3" - -"@babel/plugin-transform-react-jsx-source@^7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.9.0.tgz" - integrity sha512-K6m3LlSnTSfRkM6FcRk8saNEeaeyG5k7AVkBU2bZK3+1zdkSED3qNdsWrUgQBeTVD2Tp3VMmerxVO2yM5iITmw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-jsx" "^7.8.3" - "@babel/plugin-transform-react-jsx@^7.14.5": version "7.14.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.14.9.tgz#3314b2163033abac5200a869c4de242cd50a914c" @@ -1492,16 +1065,6 @@ "@babel/plugin-syntax-jsx" "^7.14.5" "@babel/types" "^7.14.9" -"@babel/plugin-transform-react-jsx@^7.9.4": - version "7.9.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.9.4.tgz" - integrity sha512-Mjqf3pZBNLt854CK0C/kRuXAnE6H/bo7xYojP+WGtX8glDGSibcwnsWwhwoSuRg0+EBnxPC1ouVnuetUIlPSAw== - dependencies: - "@babel/helper-builder-react-jsx" "^7.9.0" - "@babel/helper-builder-react-jsx-experimental" "^7.9.0" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-jsx" "^7.8.3" - "@babel/plugin-transform-react-pure-annotations@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.14.5.tgz#18de612b84021e3a9802cbc212c9d9f46d0d11fc" @@ -1517,13 +1080,6 @@ dependencies: regenerator-transform "^0.14.2" -"@babel/plugin-transform-regenerator@^7.8.7": - version "7.8.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz" - integrity sha512-TIg+gAl4Z0a3WmD3mbYSk+J9ZUH6n/Yc57rtKRnlA/7rcCvpekHXe0CMZHP1gYp7/KLe9GHTuIba0vXmls6drA== - dependencies: - regenerator-transform "^0.14.2" - "@babel/plugin-transform-reserved-words@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz#c44589b661cfdbef8d4300dcc7469dffa92f8304" @@ -1531,13 +1087,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-reserved-words@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz" - integrity sha512-mwMxcycN3omKFDjDQUl+8zyMsBfjRFr0Zn/64I41pmjv4NJuqcYlEtezwYtw9TFd9WR1vN5kiM+O0gMZzO6L0A== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-runtime@7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.9.0.tgz" @@ -1555,13 +1104,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-shorthand-properties@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz" - integrity sha512-I9DI6Odg0JJwxCHzbzW08ggMdCezoWcuQRz3ptdudgwaHxTjxw5HgdFJmZIkIMlRymL6YiZcped4TTCB0JcC8w== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-spread@^7.15.8": version "7.15.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.15.8.tgz#79d5aa27f68d700449b2da07691dfa32d2f6d468" @@ -1570,13 +1112,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-skip-transparent-expression-wrappers" "^7.15.4" -"@babel/plugin-transform-spread@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz" - integrity sha512-CkuTU9mbmAoFOI1tklFWYYbzX5qCIZVXPVy0jpXgGwkplCndQAa58s2jr66fTeQnA64bDox0HL4U56CFYoyC7g== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-sticky-regex@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz#5b617542675e8b7761294381f3c28c633f40aeb9" @@ -1584,14 +1119,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-sticky-regex@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz" - integrity sha512-9Spq0vGCD5Bb4Z/ZXXSK5wbbLFMG085qd2vhL1JYu1WcQ5bXqZBAYRzU1d+p79GcHs2szYv5pVQCX13QgldaWw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/helper-regex" "^7.8.3" - "@babel/plugin-transform-template-literals@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz#a5f2bc233937d8453885dc736bdd8d9ffabf3d93" @@ -1599,14 +1126,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-template-literals@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz" - integrity sha512-820QBtykIQOLFT8NZOcTRJ1UNuztIELe4p9DCgvj4NK+PwluSJ49we7s9FB1HIGNIYT7wFUJ0ar2QpCDj0escQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-typeof-symbol@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz#39af2739e989a2bd291bf6b53f16981423d457d4" @@ -1614,13 +1133,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-typeof-symbol@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz" - integrity sha512-2QKyfjGdvuNfHsb7qnBBlKclbD4CfshH2KvDabiijLMGXPHJXGxtDzwIF7bQP+T0ysw8fYTtxPafgfs/c1Lrqg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-typescript@^7.15.0": version "7.15.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.15.8.tgz#ff0e6a47de9b2d58652123ab5a879b2ff20665d8" @@ -1630,15 +1142,6 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript" "^7.14.5" -"@babel/plugin-transform-typescript@^7.9.0": - version "7.9.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.9.4.tgz" - integrity sha512-yeWeUkKx2auDbSxRe8MusAG+n4m9BFY/v+lPjmQDgOFX5qnySkUY5oXzkp6FwPdsYqnKay6lorXYdC0n3bZO7w== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-syntax-typescript" "^7.8.3" - "@babel/plugin-transform-unicode-escapes@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz#9d4bd2a681e3c5d7acf4f57fa9e51175d91d0c6b" @@ -1654,14 +1157,6 @@ "@babel/helper-create-regexp-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-unicode-regex@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz" - integrity sha512-+ufgJjYdmWfSQ+6NS9VGUR2ns8cjJjYbrbi11mZBTaWm+Fui/ncTLFF28Ei1okavY+xkojGr1eJxNsWYeA5aZw== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/preset-env@7.15.8", "@babel/preset-env@^7.1.6": version "7.15.8" resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.15.8.tgz#f527ce5bcb121cd199f6b502bf23e420b3ff8dba" @@ -1741,72 +1236,6 @@ core-js-compat "^3.16.0" semver "^6.3.0" -"@babel/preset-env@^7.0.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.9.0.tgz" - integrity sha512-712DeRXT6dyKAM/FMbQTV/FvRCms2hPCx+3weRjZ8iQVQWZejWWk1wwG6ViWMyqb/ouBbGOl5b6aCk0+j1NmsQ== - dependencies: - "@babel/compat-data" "^7.9.0" - "@babel/helper-compilation-targets" "^7.8.7" - "@babel/helper-module-imports" "^7.8.3" - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-proposal-async-generator-functions" "^7.8.3" - "@babel/plugin-proposal-dynamic-import" "^7.8.3" - "@babel/plugin-proposal-json-strings" "^7.8.3" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-proposal-numeric-separator" "^7.8.3" - "@babel/plugin-proposal-object-rest-spread" "^7.9.0" - "@babel/plugin-proposal-optional-catch-binding" "^7.8.3" - "@babel/plugin-proposal-optional-chaining" "^7.9.0" - "@babel/plugin-proposal-unicode-property-regex" "^7.8.3" - "@babel/plugin-syntax-async-generators" "^7.8.0" - "@babel/plugin-syntax-dynamic-import" "^7.8.0" - "@babel/plugin-syntax-json-strings" "^7.8.0" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0" - "@babel/plugin-syntax-numeric-separator" "^7.8.0" - "@babel/plugin-syntax-object-rest-spread" "^7.8.0" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.0" - "@babel/plugin-syntax-optional-chaining" "^7.8.0" - "@babel/plugin-syntax-top-level-await" "^7.8.3" - "@babel/plugin-transform-arrow-functions" "^7.8.3" - "@babel/plugin-transform-async-to-generator" "^7.8.3" - "@babel/plugin-transform-block-scoped-functions" "^7.8.3" - "@babel/plugin-transform-block-scoping" "^7.8.3" - "@babel/plugin-transform-classes" "^7.9.0" - "@babel/plugin-transform-computed-properties" "^7.8.3" - "@babel/plugin-transform-destructuring" "^7.8.3" - "@babel/plugin-transform-dotall-regex" "^7.8.3" - "@babel/plugin-transform-duplicate-keys" "^7.8.3" - "@babel/plugin-transform-exponentiation-operator" "^7.8.3" - "@babel/plugin-transform-for-of" "^7.9.0" - "@babel/plugin-transform-function-name" "^7.8.3" - "@babel/plugin-transform-literals" "^7.8.3" - "@babel/plugin-transform-member-expression-literals" "^7.8.3" - "@babel/plugin-transform-modules-amd" "^7.9.0" - "@babel/plugin-transform-modules-commonjs" "^7.9.0" - "@babel/plugin-transform-modules-systemjs" "^7.9.0" - "@babel/plugin-transform-modules-umd" "^7.9.0" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.8.3" - "@babel/plugin-transform-new-target" "^7.8.3" - "@babel/plugin-transform-object-super" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.8.7" - "@babel/plugin-transform-property-literals" "^7.8.3" - "@babel/plugin-transform-regenerator" "^7.8.7" - "@babel/plugin-transform-reserved-words" "^7.8.3" - "@babel/plugin-transform-shorthand-properties" "^7.8.3" - "@babel/plugin-transform-spread" "^7.8.3" - "@babel/plugin-transform-sticky-regex" "^7.8.3" - "@babel/plugin-transform-template-literals" "^7.8.3" - "@babel/plugin-transform-typeof-symbol" "^7.8.4" - "@babel/plugin-transform-unicode-regex" "^7.8.3" - "@babel/preset-modules" "^0.1.3" - "@babel/types" "^7.9.0" - browserslist "^4.9.1" - core-js-compat "^3.6.2" - invariant "^2.2.2" - levenary "^1.1.1" - semver "^5.5.0" - "@babel/preset-flow@^7.0.0", "@babel/preset-flow@^7.13.13": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.14.5.tgz#a1810b0780c8b48ab0bece8e7ab8d0d37712751c" @@ -1816,17 +1245,6 @@ "@babel/helper-validator-option" "^7.14.5" "@babel/plugin-transform-flow-strip-types" "^7.14.5" -"@babel/preset-modules@^0.1.3": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.3.tgz" - integrity sha512-Ra3JXOHBq2xd56xSF7lMKXdjBn3T772Y1Wet3yWnkDly9zHvJki029tAFzvAAK5cf4YV3yoxuP61crYRol6SVg== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" - "@babel/plugin-transform-dotall-regex" "^7.4.4" - "@babel/types" "^7.4.4" - esutils "^2.0.2" - "@babel/preset-modules@^0.1.4": version "0.1.4" resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.4.tgz#362f2b68c662842970fdb5e254ffc8fc1c2e415e" @@ -1850,18 +1268,6 @@ "@babel/plugin-transform-react-jsx-development" "^7.14.5" "@babel/plugin-transform-react-pure-annotations" "^7.14.5" -"@babel/preset-react@^7.0.0": - version "7.9.4" - resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.9.4.tgz" - integrity sha512-AxylVB3FXeOTQXNXyiuAQJSvss62FEotbX2Pzx3K/7c+MKJMdSg6Ose6QYllkdCFA8EInCJVw7M/o5QbLuA4ZQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-react-display-name" "^7.8.3" - "@babel/plugin-transform-react-jsx" "^7.9.4" - "@babel/plugin-transform-react-jsx-development" "^7.9.0" - "@babel/plugin-transform-react-jsx-self" "^7.9.0" - "@babel/plugin-transform-react-jsx-source" "^7.9.0" - "@babel/preset-typescript@7.15.0", "@babel/preset-typescript@^7.1.0", "@babel/preset-typescript@^7.13.0": version "7.15.0" resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.15.0.tgz#e8fca638a1a0f64f14e1119f7fe4500277840945" @@ -1871,14 +1277,6 @@ "@babel/helper-validator-option" "^7.14.5" "@babel/plugin-transform-typescript" "^7.15.0" -"@babel/preset-typescript@7.9.0": - version "7.9.0" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.9.0.tgz" - integrity sha512-S4cueFnGrIbvYJgwsVFKdvOmpiL0XGw9MFW9D0vgRys5g36PBhZRL8NX8Gr2akz8XRtzq6HuDXPD/1nniagNUg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - "@babel/plugin-transform-typescript" "^7.9.0" - "@babel/register@7.15.3", "@babel/register@^7.0.0", "@babel/register@^7.13.16": version "7.15.3" resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.15.3.tgz#6b40a549e06ec06c885b2ec42c3dd711f55fe752" @@ -1960,7 +1358,7 @@ "@babel/parser" "^7.8.6" "@babel/types" "^7.8.6" -"@babel/traverse@^7.0.0", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4", "@babel/traverse@^7.8.3", "@babel/traverse@^7.8.6", "@babel/traverse@^7.9.0": +"@babel/traverse@^7.0.0", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4", "@babel/traverse@^7.8.6", "@babel/traverse@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.9.0.tgz" integrity sha512-jAZQj0+kn4WTHO5dUZkZKhbFrqZE7K5LAQ5JysMnmvGij+wOdr+8lWqPeW0BcF4wFwrEXXtdGO7wcV6YPJcf3w== @@ -5143,13 +4541,6 @@ babel-loader@8.1.0, babel-loader@^8.1.0: pify "^4.0.1" schema-utils "^2.6.5" -babel-plugin-dynamic-import-node@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz" - integrity sha512-o6qFkpeQEBxcqt0XYlWzAVxNCSCZdUgcR8IRlhD/8DylxjjO4foPcvTW0GGKa/cVt3rvxZ7o5ippJ+/0nvLhlQ== - dependencies: - object.assign "^4.1.0" - babel-plugin-dynamic-import-node@^2.3.3: version "2.3.3" resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz#84fda19c976ec5c6defef57f9427b3def66e17a3" @@ -5488,16 +4879,6 @@ browserslist@^4.16.6, browserslist@^4.17.3: node-releases "^2.0.0" picocolors "^1.0.0" -browserslist@^4.8.3, browserslist@^4.9.1: - version "4.11.1" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.11.1.tgz" - integrity sha512-DCTr3kDrKEYNw6Jb9HFxVLQNaue8z+0ZfRBRjmCunKDEXEBajKDj2Y+Uelg+Pi29OnvaSGwjOsnRyNEkXzHg5g== - dependencies: - caniuse-lite "^1.0.30001038" - electron-to-chromium "^1.3.390" - node-releases "^1.1.53" - pkg-up "^2.0.0" - bs-logger@0.x: version "0.2.6" resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz" @@ -5671,11 +5052,6 @@ camelize@^1.0.0: resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz" integrity sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs= -caniuse-lite@^1.0.30001038: - version "1.0.30001039" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001039.tgz" - integrity sha512-SezbWCTT34eyFoWHgx8UWso7YtvtM7oosmFoXbCkdC6qJzRfBTeTgE9REtKtiuKXuMwWTZEvdnFNGAyVMorv8Q== - caniuse-lite@^1.0.30001265: version "1.0.30001267" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001267.tgz#b1cf2937175afc0570e4615fc2d2f9069fa0ed30" @@ -6342,14 +5718,6 @@ core-js-compat@^3.16.0, core-js-compat@^3.16.2: browserslist "^4.17.3" semver "7.0.0" -core-js-compat@^3.6.2: - version "3.6.4" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.4.tgz" - integrity sha512-zAa3IZPvsJ0slViBQ2z+vgyyTuhd3MFn1rBQjZSKVEgB0UMYhUkCj9jJUVPgGTGqWvsBVmfnruXgTcNyTlEiSA== - dependencies: - browserslist "^4.8.3" - semver "7.0.0" - core-js-pure@^3.0.0: version "3.6.4" resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.6.4.tgz" @@ -7072,11 +6440,6 @@ ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz" -electron-to-chromium@^1.3.390: - version "1.3.397" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.397.tgz" - integrity sha512-zcUd1p/7yzTSdWkCTrqGvbnEOASy96d0RJL/lc5BDJoO23Z3G/VHd0yIPbguDU9n8QNUTCigLO7oEdtOb7fp2A== - electron-to-chromium@^1.3.867: version "1.3.870" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.870.tgz#c15c921e66a46985181b261f8093b91c2abb6604" @@ -9223,7 +8586,7 @@ interpret@1.2.0, interpret@^1.0.0: resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz" integrity sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw== -invariant@^2.2.2, invariant@^2.2.4: +invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz" integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== @@ -10410,13 +9773,6 @@ leven@^3.1.0: resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz" integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== -levenary@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/levenary/-/levenary-1.1.1.tgz" - integrity sha512-mkAdOIt79FD6irqjYSs4rdbnlT5vRonMEvBVPVb3XmevfS8kgRXwfes0dhPdEtzTWD/1eNE/Bm/G1iRt6DcnQQ== - dependencies: - leven "^3.1.0" - levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -11508,11 +10864,6 @@ node-notifier@^6.0.0: shellwords "^0.1.1" which "^1.3.1" -node-releases@^1.1.53: - version "1.1.53" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.53.tgz" - integrity sha512-wp8zyQVwef2hpZ/dJH7SfSrIPD6YoJz6BDQDpGEkcA0s3LpAQoxBIYmfIq6QAhC1DhwsyCgTaTTcONwX8qzCuQ== - node-releases@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.0.tgz#67dc74903100a7deb044037b8a2e5f453bb05400" @@ -12434,13 +11785,6 @@ pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" -pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-2.0.0.tgz" - integrity sha1-yBmscoBZpGHKscOImivjxJoATX8= - dependencies: - find-up "^2.1.0" - please-upgrade-node@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz"