File tree Expand file tree Collapse file tree 8 files changed +18
-2
lines changed Expand file tree Collapse file tree 8 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
+ import React from 'react' ;
2
3
import { shallow , mount } from 'enzyme' ;
3
- import Slider from '../src' ;
4
+ import Slider from '../src/index' ;
5
+
6
+
4
7
5
8
describe ( 'basic test' , function ( ) {
6
9
it ( 'should add numbers' , function ( ) {
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"start" : " gulp server" ,
8
8
"prepublish" : " babel ./src --out-dir ./lib && gulp dist" ,
9
- "test" : " karma start --single-run " ,
9
+ "test" : " jest " ,
10
10
"dev-test" : " karma start"
11
11
},
12
12
"author" : " Kiran Abburi" ,
28
28
"babel-cli" : " ^6.16.0" ,
29
29
"babel-core" : " ^6.16.0" ,
30
30
"babel-eslint" : " ^7.0.0" ,
31
+ "babel-jest" : " ^15.0.0" ,
31
32
"babel-loader" : " ^6.2.5" ,
32
33
"babel-plugin-transform-object-assign" : " ^6.8.0" ,
34
+ "babel-polyfill" : " ^6.16.0" ,
33
35
"babel-preset-airbnb" : " ^2.1.1" ,
34
36
"babel-preset-es2015" : " ^6.16.0" ,
35
37
"babel-preset-react" : " ^6.16.0" ,
45
47
"gulp" : " ^3.9.1" ,
46
48
"gulp-sass" : " ^2.3.2" ,
47
49
"jasmine-core" : " ^2.5.2" ,
50
+ "jest" : " ^15.1.1" ,
48
51
"json-loader" : " ^0.5.4" ,
49
52
"karma" : " ^1.3" ,
50
53
"karma-babel-preprocessor" : " ^6.0.1" ,
78
81
"react" : " ^0.14.0 || ^15.0.1" ,
79
82
"react-dom" : " ^0.14.0 || ^15.0.1"
80
83
},
84
+ "jest" : {
85
+ "setupFiles" : [" test-setup.js" ]
86
+ },
81
87
"npmName" : " react-slick" ,
82
88
"npmFileMap" : [
83
89
{
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ window . matchMedia = window . matchMedia || function ( ) {
2
+ return {
3
+ matches : false ,
4
+ addListener : function ( ) { } ,
5
+ removeListener : function ( ) { }
6
+ } ;
7
+ } ;
You can’t perform that action at this time.
0 commit comments