File tree 10 files changed +46
-8
lines changed
10 files changed +46
-8
lines changed Original file line number Diff line number Diff line change 58
58
"supercluster" : " 3.0.0"
59
59
},
60
60
"peerDependencies" : {
61
+ "mapbox-gl" : " ^0.40.1" ,
61
62
"prop-types" : " ^15.5.10" ,
62
63
"react" : " ^15.6.1" ,
63
- "react-dom" : " ^15.6.1" ,
64
- "mapbox-gl" : " ^0.40.1"
64
+ "react-dom" : " ^15.6.1"
65
65
},
66
66
"devDependencies" : {
67
67
"@types/core-js" : " 0.9.43" ,
78
78
"@types/react-test-renderer" : " ^15.5.4" ,
79
79
"@types/recompose" : " 0.24.1" ,
80
80
"@types/supercluster" : " ^2.3.0" ,
81
- "enzyme" : " 2.9.1" ,
82
- "jest" : " 21.1.0" ,
81
+ "enzyme" : " ^3.0.0" ,
82
+ "enzyme-adapter-react-16" : " ^1.0.0" ,
83
+ "jest" : " ^21.2.0" ,
83
84
"mapbox-gl" : " 0.39.1" ,
84
85
"prettier" : " 1.7.0" ,
85
86
"prop-types" : " 15.5.10" ,
86
- "react" : " 15.6.1 " ,
87
- "react-dom" : " 15.6.1 " ,
88
- "react-test-renderer" : " 15.6.1 " ,
87
+ "react" : " ^16.0.0 " ,
88
+ "react-dom" : " 16.0.0 " ,
89
+ "react-test-renderer" : " ^16.0.0 " ,
89
90
"recompose" : " 0.25.0" ,
90
91
"ts-jest" : " 21.0.1" ,
91
92
"tslint" : " 5.7.0" ,
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ import { withContext } from 'recompose';
15
15
import { mount } from 'enzyme' ;
16
16
const PropTypes = require ( 'prop-types' ) ; // tslint:disable-line
17
17
18
+ const Enzyme = require ( 'enzyme' ) ;
19
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
20
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
21
+
18
22
const coordinates = [
19
23
[ - 12.408741828510017 , 58.16339752811908 ] ,
20
24
[ - 5.668629523822517 , 50.06970856327533 ] ,
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ import { withContext } from 'recompose';
4
4
import { mount } from 'enzyme' ;
5
5
const PropTypes = require ( 'prop-types' ) ; // tslint:disable-line
6
6
7
+ const Enzyme = require ( 'enzyme' ) ;
8
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
9
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
10
+
7
11
describe ( 'GeoJSONLayer' , ( ) => {
8
12
let GeoJSONLayerWithContext : any ;
9
13
let addLayerMock = jest . fn ( ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ import { withContext } from 'recompose';
4
4
import { mount } from 'enzyme' ;
5
5
const PropTypes = require ( 'prop-types' ) ; // tslint:disable-line
6
6
7
+ const Enzyme = require ( 'enzyme' ) ;
8
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
9
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
10
+
7
11
describe ( 'Layer' , ( ) => {
8
12
let LayerWithContext : any ;
9
13
let addLayerMock = jest . fn ( ) ;
Original file line number Diff line number Diff line change @@ -15,9 +15,14 @@ import * as React from 'react';
15
15
import ReactMapboxGl , { FitBounds } from '../map' ;
16
16
import { mount } from 'enzyme' ;
17
17
18
+ const Enzyme = require ( 'enzyme' ) ;
19
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
20
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
21
+
18
22
describe ( 'Map' , ( ) => {
19
23
let mapState ;
20
-
24
+ console . log ( 'Enzyme' ) ;
25
+ console . log ( Enzyme ) ;
21
26
beforeEach ( ( ) => {
22
27
mockfitBounds = jest . fn ( ) ;
23
28
mockon = jest . fn ( ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ import { withContext } from 'recompose';
12
12
import { mount } from 'enzyme' ;
13
13
const PropTypes = require ( 'prop-types' ) ; // tslint:disable-line
14
14
15
+ const Enzyme = require ( 'enzyme' ) ;
16
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
17
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
18
+
15
19
describe ( 'Popup' , ( ) => {
16
20
let PopupWithContext : any ;
17
21
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ import * as React from 'react';
2
2
import RotationControl from '../rotation-control' ;
3
3
import { shallow } from 'enzyme' ;
4
4
5
+ const Enzyme = require ( 'enzyme' ) ;
6
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
7
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
8
+
5
9
describe ( 'RotationControl' , ( ) => {
6
10
it ( 'should render the component' , ( ) => {
7
11
const wrapper = shallow ( < RotationControl /> ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ import { shallow } from 'enzyme';
4
4
import { withContext } from 'recompose' ;
5
5
const PropTypes = require ( 'prop-types' ) ; // tslint:disable-line
6
6
7
+ const Enzyme = require ( 'enzyme' ) ;
8
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
9
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
10
+
7
11
describe ( 'ScaleControl' , ( ) => {
8
12
let ScaleControlWithContext : any ;
9
13
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ import { withContext } from 'recompose';
4
4
import { mount } from 'enzyme' ;
5
5
const PropTypes = require ( 'prop-types' ) ; // tslint:disable-line
6
6
7
+ const Enzyme = require ( 'enzyme' ) ;
8
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
9
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
10
+
7
11
describe ( 'Source' , ( ) => {
8
12
let SourceWithContext : any ;
9
13
let addSourceMock : any ;
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ import * as React from 'react';
2
2
import ZoomControl from '../zoom-control' ;
3
3
import { shallow } from 'enzyme' ;
4
4
5
+ const Enzyme = require ( 'enzyme' ) ;
6
+ const Adapter = require ( 'enzyme-adapter-react-16' ) ;
7
+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
8
+
5
9
describe ( 'ZoomControl' , ( ) => {
6
10
it ( 'should render the component' , ( ) => {
7
11
const wrapper = shallow ( < ZoomControl /> ) ;
You can’t perform that action at this time.
0 commit comments