Giter Site home page Giter Site logo

typescript-training's Introduction

typescript-training

Greenkeeper badge Build Status

install

Run:

npm install

run

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

npm test -- --single-run

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

npm test

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

  • First remove 'src/main/*.ts' from excludes: section in karma.comf.ts
  • Then add the same line in tsconfig.json in include: section
  • now run test again, you will have to resolve all main test

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

typescript-training's People

Contributors

ducin avatar greenkeeper[bot] avatar riderx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.