Skip to content

Commit 64c1c0b

Browse files
committed
Added jest tests
1 parent 85f5488 commit 64c1c0b

11 files changed

Lines changed: 11048 additions & 551 deletions

File tree

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RSS.app keys
2+
RSS_APP_API_KEY=
3+
RSS_APP_API_SECRET=

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
/lib
33
examples/generate-rss-feed/typescript-node/*.js
4+
coverage
5+
.env

.npmignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
src
22
tsconfig.json
33
tslint.json
4-
.prettierrc
4+
.prettierrc
5+
jest.config.js
6+
.env
7+
.env.example

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![Version](https://img.shields.io/npm/v/rss-generator-api.svg)](https://www.npmjs.org/package/rss-generator-api)
44
[![Try on RunKit](https://badge.runkitcdn.com/rss-generator-api.svg)](https://npm.runkit.com/rss-generator-api)
5+
[![Types](https://badgen.net/npm/types/rss-generator-api)](https://www.npmjs.org/package/rss-generator-api)
6+
[![Covarage](https://badgen.net/codecov/c/github/babel/babel)](https://www.npmjs.org/package/rss-generator-api)
57

68
The rss-generator-api library provides convenient access to the RSS.app API from
79
applications written in JavaScript.
@@ -10,6 +12,13 @@ applications written in JavaScript.
1012

1113
See the [ API docs](https://rss.app/docs/api) for Node.js.
1214

15+
## Live Demo
16+
17+
A minimal demo project can be found in [examples directory](https://github.com/RSSapp/rssapp-node/tree/main/examples).
18+
19+
[Online demo](https://npm.runkit.com/rss-generator-api) is also available!
20+
21+
1322
## Requirements
1423

1524
Node 8 or higher.

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
transform: { '^.+\\.ts?$': 'ts-jest' },
3+
testEnvironment: 'node',
4+
testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$',
5+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
6+
setupFiles: ['dotenv/config'],
7+
coverageReporters: ['json-summary', 'lcov'],
8+
};

0 commit comments

Comments
 (0)