The atomic RSS aggregator
Available NPM commands:
npm start
- runs the applicationnpm run build
- build the applicationnpm run dev
- build automatically on source changesnpm lint
- run liner tool (tslint) according to coding style configuration in ./tslint.jsonnpm test
- run unit-testsUnit-testing:
Here we use Jest testing framework. We set it up in package.json
like:
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.(ts|tsx)$": "./jest-preprocessor.js"
},
"testRegex": "/app/ts/.*\\.spec\\.(ts|tsx)$"
}
In addition we provide transformation script ./jest-preprocessor.js
that helps Jest understanding specs written in TypeScript
Installing dependencies
npm install
Tested with: