Please take around 30 minutes to show your proficiency with writing tests in JavaScript. The component to test, vernier-app, makes a network request and renders a list based on the response. There are multiple ways to solve for the test scenario. Be prepared to discuss your solution, alternatives, and trade-offs.
- Clone the repo
- Do
npm install
- Fill in the test in test/vernier-app.test.js where indicated,
// Complete this test
- Do
npm test
to see if everything passes - Open a PR with your work
- Let the hiring manager know the PR is up
start
runs your app for development, reloading on file changesstart:build
runs your app after it has been built using the build commandbuild
builds your app and outputs it in yourdist
directorytest
runs your test suite with Web Test Runnerlint
runs the linter for your projectformat
fixes linting and formatting errors
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.