Skip to content

slavastartsev/mocha-chai-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

Read info bellow to setup project with mocha chai testing modules.

Steps

  • npm install --save mocha chai jsdom react-addons-test-utils babel-register babel-preset-es2015
  • create .babelrc
  • create test folder inside src and write setup.js or whatever you call it to simulate DOM
  • create basic test to verify everything runs correctly
  • as mocha extra options use "--compilers js:babel-core/register --require ./setup.js" for WebStorm or modify package.json -> scripts -> test "./node_modules/.bin/mocha --compilers js:babel-core/register --require ./src/test/setup.js ./src/test/*.test.js"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published