Skip to content

Commit

Permalink
fix: don't silently ignore test failures, fix data reduce bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee committed Aug 15, 2019
1 parent dcb4a70 commit 95fd038
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@
"typescript": "^3.5.3"
},
"scripts": {
"install:examples": "loop \"yarn install --force --check-files\" --cwd ./examples",
"install:examples": "loop \"yarn install --force --check-files\" --cwd ./examples --exit-on-aggregate-error",
"build:config": "cd services/config && yarn build",
"build:services": "yarn build:config && loop \"yarn build\" --cwd ./services --exclude config",
"build:services": "yarn build:config && loop \"yarn build\" --cwd ./services --exclude config --exit-on-error",
"build:runtime": "cd runtime && yarn build",
"build": "yarn build:services && yarn build:runtime && yarn install:examples",
"test:services": "loop \"yarn test\" --cwd ./services",
"test:services": "loop \"yarn test\" --cwd ./services --exit-on-error",
"test:runtime": "cd runtime && yarn test",
"test": "yarn test:services && yarn test:runtime",
"format": "d2-style js apply --all --no-stage",
"start": "yarn build && cd examples/cra && yarn start"
},
"version": "1.4.3"
}
}
1 change: 1 addition & 0 deletions services/data/src/hooks/useDataQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ContextType } from '../types/Context'
const reduceResponses = (responses: any[], names: string[]) =>
responses.reduce((out, response, idx) => {
out[names[idx]] = response
return out
}, {})

const fetchData = (
Expand Down

0 comments on commit 95fd038

Please sign in to comment.