Giter Site home page Giter Site logo

javascript-interview-simple-boilerplate's Introduction

Simple plain Javascript/Node.js starter for Interviews

This is a very simple boilerplate for simple javascript/node.js interview exercises with auto-reloading on save and Jest as test runner. Chai syntax is optional. In this specific boilerplate, I left linting and Babel out on purpose.

I like to have people free to choose their own "starter" boilerplate. But some people have been working for a while on one codebase where the setup and the tooling was done for them. It is not fair, or at least waste valuable time during the interview, to have people set up things from scratch during interviews. Knowing how to do that is a nice to have. But if people do not know how, it does not mean that are unqualified candidates.

This is a basic uncomplicated setup that enables us to save time and increase productivity.

Pre-requisites

Install nvm or make sure you are running node 8 or up. Install [yarn] - npm install -g yarn

Installation

git clone https://github.com/this-repo my-test-app
cd my-test-app
nvm use
yarn
yarn start

Tests

It uses Jest. All *.spec.js files will be consider test files.

Run tests

Run tests once:

$ yarn run test

To run tests in watch mode use:

$ yarn run test:watch

To run test coverage use:

$ yarn run cover

To see the HTML test coverage results use:

$ yarn run cover-report

Chai support

Do you want to use chai for tests? Just check setup-tests.js

javascript-interview-simple-boilerplate's People

Watchers

 avatar  avatar

Forkers

jyotishman

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.