Skip to content

Latest commit

 

History

History

es6-jasmine-karma

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

ES6 UnitTest Kickstarter

A small kickstarter project to use ECMAScript6 with jasmine running on karma in coding katas.

Requirements:

  • Node.js with npm or yarn

Karma Testrunner

Installation

yarn install or npm install

Run

yarn test or npm test

In PhpStorm:

  • Set "JavaScript language version" to "ECMAScript 6" in "Settings" -> "Languages & Frameworks" -> "JavaScript"
  • Enable "jasmine-DefinitelyTyped" in "Settings" -> "Languages & Frameworks" -> "JavaScript" -> "Libraries"
  • "Run" -> "Edit Configurations..." -> "+" -> "Karma" or "right-click" karma.conf.js file and choose "Run 'karma.conf.js'"
  • Check NodeJS and Karma binaries and fill the path to karma.conf.js in "Configuration file".
  • Start Runner (Shift+F10 [Win/Linux] or ^R on Mac) and enable "Toggle auto-test" in "Run"-View (2nd icon on the upper left).