IGNORE_A11Y = true

node_modules/@financial-times/n-gage/index.mk:
	npm install --no-save --no-package-lock @financial-times/n-gage
	touch $@

-include node_modules/@financial-times/n-gage/index.mk

unit-test:
	export NODE_ENV=test; \
	export MEMBQL_API_KEY_TEST=testKey; \
	export MEMBQL_API_KEY_PROD=prodKey; \
	export MEMBQL_API_KEY_MOCK=mockKey; \
	export MEMBQL_API_ENDPOINT_TEST=https://www.testHost.com/api; \
	export MEMBQL_API_ENDPOINT_PROD=https://www.prodHost.com/api; \
	export MEMBQL_API_ENDPOINT_MOCK=https://www.mockHost.com/api; \
	mocha --recursive test/

test:
	make verify
	make unit-test
