1 | node_modules/@financial-times/n-gage/index.mk:
|
2 | npm install --no-save @financial-times/n-gage
|
3 | touch $@
|
4 |
|
5 | -include node_modules/@financial-times/n-gage/index.mk
|
6 |
|
7 | # The reason for passing --runInBand to jest in CI:
|
8 | # https://facebook.github.io/jest/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server
|
9 | unit-test:
|
10 | export TEST_SESSIONS_URL=https://fuhn0pye67.execute-api.eu-west-1.amazonaws.com/prod; \
|
11 | export TEST_SESSIONS_API_KEY=mock-api-key; \
|
12 | jest test/tasks/*.js --testURL="http://localhost/" --forceExit $(if $(CI), --ci --runInBand --testResultsProcessor="jest-junit", )
|
13 |
|
14 | test: verify unit-test
|