To develop on this project, you need to have Node version 12.22.7 installed. In order to easily switch between node versions, we recommend using node version manager like nvm
-
Install dependencies:
$ npm install
-
Run webpack (with development server):
$ npm run dev
Note: Marquez listens on port
8080
for all API calls; use theMARQUEZ_PORT
environment variable to override the API port.
-
Run tests in watch mode:
$ npm run test-watch
-
Run all tests:
$ npm run test
- Jest is our testing framework. It is the test runner; it provides testing language (describe, it, beforeEach), mocking, snapshot, code coverage.
- Enzyme - testing utility for testing React components. Provides methods for (mock) rendering components & DOM traversal.
- run tests by doing
yarn run test
- config files:
- jest.config.js
- setupEnzyme.ts
- For testing Redux Sagas, we are using
Redux Saga Test Plan
. This library gives us both unit testing and integration test functionality. Check out the docs.
This project is written in typescript. See tsconfig.json for our setup.
Our types are defined in the src/types
folder
Fix all style issues in project
$ npm run eslint-fix
Mock data can be found in the docker/db/data
folder.
Feel free to edit the mock data if you like. (Grant worked really hard on making it pretty.)