Giter Club home page Giter Club logo

redbubble-code-test's Introduction

RedBubble Code Test

Overview

React, GraphQl, Apollo, Storybook, Snapshot Test, Jest Unit Test (@testing-library/react), advanced Webpack and Babel.

Test Coverage: 94%

Browser Compatibility

  • Target: > 0.25%, not dead
  • Tested: Chrome, Safari

Issues

  • Some Component is not 100% covered, because of avoiding duplicated test

Getting Started

1. Prerequisites

  • Git
  • Node(& npm): any 12.x version starting with 12.14.1 or greater

2. Installation

  1. npm i to install the website's npm dependencies

3. Running locally

  1. npm run start:dev to start the hot-reloading development server
  2. open http://localhost:8000 to open the site in your favorite browser
  • Tool: Webpack, Webpack Dev Server

4. Storybook

  1. npm run storybook to start the hot-reloading storybook server
  2. open https://localhost:6006 to open the storybook in your favorite browser
  • Tool: Storybook

Running tests

  1. npm i to install the website's npm dependencies
  2. npm run test to run Lint, Unit Test, Snapshot Test, E2E Test.

1. Linting

ESLint &n StyleLint, check syntax, find problems, and enforce code style.

2. Unit Test

npm run test:unit to run unit test (./src/**/*.test.jsx)

  • Tool: Jest, @testing-library/react

3. Snapshot Test

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

Deployment

1. Build

npm run build to build website artifacts

  • Tool: Webpack, Babel
  • Artifacts: ./build

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.