2021-09-24 14:39:13 +00:00
|
|
|
BIJ1 Compliance Facilitator App
|
|
|
|
===============================
|
|
|
|
|
2021-10-03 20:24:39 +00:00
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
- [Yarn](https://yarnpkg.com/)
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
2021-09-29 21:24:01 +00:00
|
|
|
`yarn install` installs the dependencies
|
2021-09-24 14:56:44 +00:00
|
|
|
|
2022-06-16 14:00:15 +00:00
|
|
|
set the API keys for [Mollie](https://www.mollie.com/dashboard/org_3678554/developers/api-keys):
|
2021-09-29 21:24:01 +00:00
|
|
|
```bash
|
|
|
|
export NODE_OPTIONS=--experimental-vm-modules npx jest
|
|
|
|
export MOLLIE_API_KEY_LEDEN=<MY_KEY>
|
|
|
|
```
|
2021-09-28 20:35:12 +00:00
|
|
|
|
2021-10-03 20:24:39 +00:00
|
|
|
`yarn start` launches the app
|
|
|
|
|
|
|
|
`yarn run test` launches the tests (using JSHint and Jest)
|
2021-09-24 14:39:13 +00:00
|
|
|
|
2021-10-03 20:24:39 +00:00
|
|
|
`yarn run dev` watches src/ for changes and runs test when anything does change
|
2021-09-24 14:56:44 +00:00
|
|
|
|
2021-10-04 10:37:31 +00:00
|
|
|
$(yarn bin)/jest -- tests/mollie.test.ts
|