Skip to content

Commit 95fd038

Browse files
committed
fix: don't silently ignore test failures, fix data reduce bug
1 parent dcb4a70 commit 95fd038

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@
4545
"typescript": "^3.5.3"
4646
},
4747
"scripts": {
48-
"install:examples": "loop \"yarn install --force --check-files\" --cwd ./examples",
48+
"install:examples": "loop \"yarn install --force --check-files\" --cwd ./examples --exit-on-aggregate-error",
4949
"build:config": "cd services/config && yarn build",
50-
"build:services": "yarn build:config && loop \"yarn build\" --cwd ./services --exclude config",
50+
"build:services": "yarn build:config && loop \"yarn build\" --cwd ./services --exclude config --exit-on-error",
5151
"build:runtime": "cd runtime && yarn build",
5252
"build": "yarn build:services && yarn build:runtime && yarn install:examples",
53-
"test:services": "loop \"yarn test\" --cwd ./services",
53+
"test:services": "loop \"yarn test\" --cwd ./services --exit-on-error",
5454
"test:runtime": "cd runtime && yarn test",
5555
"test": "yarn test:services && yarn test:runtime",
5656
"format": "d2-style js apply --all --no-stage",
5757
"start": "yarn build && cd examples/cra && yarn start"
5858
},
5959
"version": "1.4.3"
60-
}
60+
}

services/data/src/hooks/useDataQuery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { ContextType } from '../types/Context'
1111
const reduceResponses = (responses: any[], names: string[]) =>
1212
responses.reduce((out, response, idx) => {
1313
out[names[idx]] = response
14+
return out
1415
}, {})
1516

1617
const fetchData = (

0 commit comments

Comments
 (0)