diff --git a/.eslintrc.js b/.eslintrc.js index 1970faa7..01f98550 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -29,6 +29,6 @@ module.exports = { "no-console": ["error", {"allow": ["warn", "error"]}] }, parserOptions: { - 'project': './tsconfig.json' + 'project': ['./tsconfig.json', './src/__tests__/tsconfig.json'] }, }; diff --git a/src/__tests__/compilesb3.test.ts b/src/__tests__/compilesb3.test.ts index 1c33c3e6..2c36dacd 100644 --- a/src/__tests__/compilesb3.test.ts +++ b/src/__tests__/compilesb3.test.ts @@ -3,7 +3,7 @@ import { Project } from ".."; import * as fs from "fs"; import * as path from "path"; -async function loadProject(filename): Promise { +async function loadProject(filename: string): Promise { const file = fs.readFileSync(path.join(__dirname, filename)); return Project.fromSb3(file); } diff --git a/src/__tests__/tsconfig.json b/src/__tests__/tsconfig.json new file mode 100644 index 00000000..413dc603 --- /dev/null +++ b/src/__tests__/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "exclude": [] +}