Example repository using unmock for tests and Unmock orb for test reports.
This is a Node.js application running an Express server and using React for server-side rendering. The application displays a list of your GitHub repositories (that's you, the developer).
- Create a new personal GitHub access token with read access to your repositories
- Set the environment variable
GITHUB_TOKEN
in.env
file (see.env.example
for an example) - Install dependencies:
yarn
(ornpm i
) - Run the development server with hot reloading:
yarn dev
- Navigate to localhost:3000
- To build the app and run in production mode:
yarn build && yarn start
Run tests:
$ yarn test
Running tests does not require creating a GitHub access token: they use Unmock to mock calls to the GitHub API!
Take a look at PR #1. The orb publishes Unmock test report and sends a link to the report for inspection.
If you notice an error or you'd like to add something new to this example, please open an issue. We really appreciate the feedback and support!
Please note that this project is governed by the Meeshkan Community Code of Conduct. By participating in this project, you agree to abide by its terms.