Skip to content

WildCodeSchool/typescript-training

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-training

Build Status

install

Run:

npm install

run

single run (compile & test once, useful for CI):

npm test

development run (compile & test initially + for each file change, useful for development):

npm test -- --watchAll

running single tests

You can temporarily adapt jasmine tests to run only few specific tests (one or more) to save time, not to execute all the tests you have. In order to do that, use focus and exclude:

  • replace it() with fit()/xit() and/or
  • replace describe() tiwh fdescribe()/xdescribe()

Important thing, however, is not to push these temporary changes (fit, xit, fdescribe, xdescribe) to the repository.

custom matchers

Run only group of tests

  • Remove '/src/main/' from testPathIgnorePatterns: section in jest.config.js for running only tests inside '/src/main/'
  • Remove '/src/datatypes/' from testPathIgnorePatterns: section in jest.config.js for running only tests inside '/src/datatypes/'
  • Remove '/src/params/' from testPathIgnorePatterns: section in jest.config.js for running only tests inside '/src/params/'
  • Remove '/src/functions/' from testPathIgnorePatterns: section in jest.config.js for running only tests inside '/src/functions/'
  • Remove '/src/promises/' from testPathIgnorePatterns: section in jest.config.js for running only tests inside '/src/promises/'

Update

We may update tests, to apply them fetch and merge the master branch back to your branch.

git merge pull push branch checkout origin master stash pop

progress

In the beginning, most of the tests are failing:

  Something
    important
      ×can be used
      ×is useful
      ×works like a charm

Your task is to learn TypeScript and make tests pass. Eventually, tests should look more or less like the following:

  Something
    important
      √can be used
      √is useful
      √works like a charm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.8%
  • Other 0.2%