Upgrade to Node v16 for Github workflows.
[ustaxlib.git] / jest.config.js
index 2d41c1a91ae14b438d4977fd5eec29dc8b4e6dc0..1b3cc1cb162c43a8e175a1c3887fa1919956b2d3 100644 (file)
@@ -1,8 +1,17 @@
+// Copyright 2020 Blue Static <https://www.bluestatic.org>
+// This program is free software licensed under the GNU General Public License,
+// version 3.0. The full text of the license can be found in LICENSE.txt.
+// SPDX-License-Identifier: GPL-3.0-only
+
 module.exports = {
   preset: 'ts-jest',
   testEnvironment: 'node',
   collectCoverage: true,
-  collectCoverageFrom: ['src/**/*.ts'],
+  collectCoverageFrom: [
+    '**/*.ts',
+    '!dist/**/*',
+    '!examples/*',
+  ],
   testPathIgnorePatterns: [
     '/node_modules/',
     '/dist/'