Starter project for typescript
npm install
npm test
- runs sample test
Add more tests by creating typescript spec files:
- Optionally create a subfolder under the the
src/
directory - add a file under the
src/
directory or the subfolder you created above. Name this file to match the patternxxx.spec.ts
- EG: my-test.spec.ts
npm t
- run the tests and immediately close the browser after each test runnpm test:w
- run the tests in watch mode; as soon as you make any change to a test file, the tests will runnpm test:debug
- run the tests but do not close the browser- Click the "DEBUG" button in the browser launched by the tests
- Use the chrome dev tools (press F12 in the browser) to debug the test code
To compile the typescript files to javascript, either:
- In Visual Studio Code, press the shortcut keys:
CTLR+SHIFT+B
npm tsc
- Jasmine docs: https://jasmine.github.io/2.5/introduction