Fix compilation for tests
This commit is contained in:
		@@ -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
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user