Run:
npm install
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
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()
withfit()
/xit()
and/or - replace
describe()
tiwhfdescribe()
/xdescribe()
Important thing, however, is not to push these temporary changes (fit
,
xit
, fdescribe
, xdescribe
) to the repository.
- see Jasmine-Matchers
- First remove
'src/main/*.ts'
fromexcludes:
section inkarma.comf.ts
- Then add the same line in
tsconfig.json
ininclude:
section - now run test again, you will have to resolve all main test
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
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