Skip to content
We're hiring, please complete this code test to apply
JavaScript Gherkin HTML Makefile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci let the test begin... Jul 11, 2019
src let the test begin... Jul 11, 2019
test/features let the test begin... Jul 11, 2019
.babelrc
.eslintignore let the test begin... Jul 11, 2019
.eslintrc let the test begin... Jul 11, 2019
.gitignore let the test begin... Jul 11, 2019
LICENSE
Makefile let the test begin... Jul 11, 2019
README.md docs(readme): include caveats and instructional links for running on … Aug 1, 2019
docker-compose.yml let the test begin... Jul 11, 2019
package.json fix(windows): remove quotes on tape args to use the bundled glob modu… Aug 1, 2019
webpack.config.js let the test begin... Jul 11, 2019
yarn.lock

README.md

ww-code-test

In this repo you will find the code test that represents the work you will be expected to be able to perform at Wealth Wizards.

Start the app by running the following commands:

yarn
yarn dev

The placeholder application can be browsed to on:

http://localhost:8080

There is a single API route accessible through the following request:

curl -X POST http://localhost:8080/v1/national-insurance -H 'Content-Type: application/json' -d '{"income": 1234}'

Instructions

Click the Use this template button above to create a private repository in your own github account and invite github users @mrwithersea and @rob1256 as collaborators on your repo.

Please complete as many parts of the test as you can, we recommend you complete them in order. Please commit your work on a new branch and raise a pull request against the master branch of your repo and add us as reviewers. Add a description to your PR outlining which parts of the test have been completed and any comments you feel necessary.

Part A. Fix the unit tests that are broken

Run this command to see the result of the unit tests, you will need to implement the empty function at line:27 of src/services/national-insurance.js in order to make the failing unit tests pass.

yarn test:unit

Part B. Fix the feature tests that are broken after completion of Part A.

Run this command to see the result of the feature tests, you will need to implement the missing feature of the API that is indicated by the failing tests.

yarn test:feature

Part C. Build a simple React application that should allow a user to compare their national insurance contributions between 2018/19 and 2019/20

Run this command to run the application locally.

yarn dev

Alternatively you can run this command to bring the application up in the provided docker container:

make dev

There are a number of packages pre-installed with this codebase, feel free to use any you see fit or add any of your own choosing.

Good luck


Caveats

This code test was written on macOS but will run natively on Windows 10.

When running on Windows 10 our preference was to follow this guide to using Windows Subsystem for Linux and installing Bash through the Ubuntu distro in the Windows Store.

Users of Ubuntu should be aware that in some versions of the distro there are extra hurdles around the aliasing of the yarn command by the cmdtest library and the use of nodejs rather than node, this page provides details on rectifying these problems.

This code test requires Node.js 10.x (which is in LTS) and we advocate using a node version management tool such as n to help in managing your node versions.

You can’t perform that action at this time.