Skip to content

Commit

Permalink
Make node 4 happy + add jest-config for tests debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jbandura committed Jul 19, 2017
1 parent 5f71216 commit 8ea46d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,6 @@ function collectObjectPatternBindings(node, initialObjToBinding) {

const binding = identifiers[bindingIndex];
return node.id.properties
.filter(props => initialObjToBinding[binding].includes(props.key.name))
.filter(props => initialObjToBinding[binding].indexOf(props.key.name) > -1)
.map(props => props.value.name);
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"eslint": "^3.15.0",
"eslint-config-airbnb-base": "^11.1.0",
"eslint-plugin-import": "^2.2.0",
"jest": "^20.0.4"
"jest": "^20.0.4",
"jest-environment-node-debug": "^2.0.0"
},
"dependencies": {
"ember-rfc176-data": "^0.2.2",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,10 @@ jest-environment-jsdom@^20.0.3:
jest-util "^20.0.3"
jsdom "^9.12.0"

jest-environment-node-debug@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/jest-environment-node-debug/-/jest-environment-node-debug-2.0.0.tgz#5ef098942fec1b6af5ee4841f4f8a2ff419562f9"

jest-environment-node@^20.0.3:
version "20.0.3"
resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-20.0.3.tgz#d488bc4612af2c246e986e8ae7671a099163d403"
Expand Down

0 comments on commit 8ea46d8

Please sign in to comment.