Fix compilation for tests

This commit is contained in:
Florent 2021-02-14 16:30:23 +01:00 committed by Florent F
parent 8a6eb338ef
commit 43e93671dd
3 changed files with 4 additions and 3 deletions

View File

@ -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": {

View File

@ -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

View File

@ -1,6 +1,7 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs"
"module": "commonjs",
"esModuleInterop": true
}
}