File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 9
9
"lint" : " eslint . --ext .js,.jsx" ,
10
10
"coverage" : " nyc --reporter lcov --reporter text --extension .jsx --require babel-register npm run test" ,
11
11
"build" : " rollup -c" ,
12
- "prepublish" : " npm run build"
12
+ "prepublish" : " npm run build && npm run test" ,
13
+ "release" : " npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
13
14
},
14
15
"files" : [
15
16
" dist"
Original file line number Diff line number Diff line change 1
- import { jsdom } from 'jsdom' ;
1
+ import { JSDOM } from 'jsdom' ;
2
2
3
- const dom = jsdom ( '<!doctype html><html><body></body></html>' ) ;
3
+ const { window } = new JSDOM ( '<!doctype html><html><body></body></html>' ) ;
4
4
5
- global . document = dom ;
6
- global . window = dom . defaultView ;
5
+ global . document = window . document ;
6
+ global . window = window ;
You can’t perform that action at this time.
0 commit comments