Skip to content

brugos/ts-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript Mocha Boilerplate

Very basic and simple boilerplate to set up a typescript TDD environment with mocha so it's quick to run some prototyping.

To use it for your own projects, simply do this:

git clone --depth=1 https://github.com/brugos/ts-boilerplate
// Rename the folder to your projects name
mv typescript-mocha-boilerplate <name-of-your-project>
cd $_
// Remove the link to this origin repository
git remote remove origin
// Add your own origin again
git remote add origin https://github.com/path/to/your/target/repository
npm install

Tools

The Tools included are:

How to run

Simply type npm run test and all tests will be run.

Configuration

All Mocha Configuration is handled via the mocha.opts File, this includes:

  • Compiler-Options: Tests are ran with ts-node directly to skip a compilation phase
  • Test-Filter-Patterns: All files ending with spec.ts will be included in tests
  • Globals and Plugin registration: plugins (e.g. sinon-chai) can be registered within the mocha-globals.js File

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published