Skip to content

Instantly share code, notes, and snippets.

@slkarsh
Last active December 5, 2019 03:19
Show Gist options
  • Save slkarsh/054495af30453e51f7fd0ebc4a9bd7ea to your computer and use it in GitHub Desktop.
Save slkarsh/054495af30453e51f7fd0ebc4a9bd7ea to your computer and use it in GitHub Desktop.

Things to install:

//babel

npm install --save-dev @babel/core @babel/preset-env @babel/node

--> then create a file called .babelrc in the root of your project

--> INSIDE the .babelrc file, add this:

{ "presets": ["@babel/preset-env"] }

THEN...

npm i jest --save installs and saves jest to dependencies

npm i supertest --save installs and saves supertest to dependencies

npm i @babel/polyfill --save-dev installs and saves babel polyfill to dev dependencies

npm i babel-core --save-dev installs and saves babel-core to dev dependencies (DIFFERENT from the @babel/core that gets installed when you install babel)

npm i nodemon --save-dev installs nodemon to dev dependencies. doesn't seem to have anything to do with testing but who knows

npm i regenerator-runtime --save-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment