React, GraphQl, Apollo, Storybook, Snapshot Test, Jest Unit Test (@testing-library/react), advanced Webpack and Babel.
Test Coverage: 94%
- Target: > 0.25%, not dead
- Tested: Chrome, Safari
- Some Component is not 100% covered, because of avoiding duplicated test
- Git
- Node(& npm): any 12.x version starting with 12.14.1 or greater
npm i
to install the website's npm dependencies
npm run start:dev
to start the hot-reloading development server- open http://localhost:8000 to open the site in your favorite browser
- Tool: Webpack, Webpack Dev Server
npm run storybook
to start the hot-reloading storybook server- open https://localhost:6006 to open the storybook in your favorite browser
- Tool: Storybook
npm i
to install the website's npm dependenciesnpm run test
to run Lint, Unit Test, Snapshot Test, E2E Test.
ESLint &n StyleLint, check syntax, find problems, and enforce code style.
npm run test:unit
to run unit test (./src/**/*.test.jsx
)
- Tool: Jest, @testing-library/react
npm run test:snap
to run snapshot test (./src/components/**/*.stories.jsx
)
- Tool: Jest, Storybook
- Test Config:
./storyshots/storyshots.test.js
- Snapshots:
./storyshots/__snapshots__/storybook.test.js.snap
npm run build
to build website artifacts
- Tool: Webpack, Babel
- Artifacts:
./build