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 testto see if everything passes - Open a PR with your work
- Let the hiring manager know the PR is up
startruns your app for development, reloading on file changesstart:buildruns your app after it has been built using the build commandbuildbuilds your app and outputs it in yourdistdirectorytestruns your test suite with Web Test Runnerlintruns the linter for your projectformatfixes 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.