Fix compilation for tests
This commit is contained in:
parent
8a6eb338ef
commit
43e93671dd
|
@ -4,7 +4,7 @@
|
|||
"description": "A lightweight library to give some additions for the [rss-parser package](https://github.com/rbren/rss-parser).",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "mocha --require ts-node/register ./tests/**/*-spec.ts",
|
||||
"test": "TS_NODE_PROJECT='./tests/tsconfig.json' mocha --require ts-node/register ./tests/**/*-spec.ts",
|
||||
"build": "tsc -p ./src"
|
||||
},
|
||||
"repository": {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Parser from "rss-parser/index";
|
||||
import Parser from "rss-parser/index";
|
||||
import { ListenerRSSInfos as ListenerInfo } from "./Models/ListenerRSSInfos";
|
||||
|
||||
const DEFAULT_TIMELOOP: number = 5 * 60; // default timeloop is 5 min
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs"
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user