From e21034db2995f0df119218786659ea451e9b936c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 17 Feb 2020 22:57:20 -0500 Subject: [PATCH] Enable Jest code coverage and use ES7 compiler. --- .gitignore | 1 + jest.config.js | 4 +++- tsconfig.json | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index c2658d7..25fbf5a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules/ +coverage/ diff --git a/jest.config.js b/jest.config.js index 91a2d2c..0384c17 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,6 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', -}; \ No newline at end of file + collectCoverage: true, + collectCoverageFrom: ['src/**/*.ts'], +}; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..31cbd65 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "lib": [ + "es7" + ] + } +} -- 2.43.5