Skip to content

Commit 92c02e3

Browse files
committed
Remove index.ts from coverage
1 parent 7b84e0e commit 92c02e3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

jest.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ module.exports = {
2727
coverageDirectory: "coverage",
2828

2929
// An array of regexp pattern strings used to skip coverage collection
30-
// coveragePathIgnorePatterns: [
31-
// "/node_modules/"
32-
// ],
30+
coveragePathIgnorePatterns: ["/src/index.ts"],
3331

3432
// Indicates which provider should be used to instrument code for coverage
3533
coverageProvider: "v8",

src/index.ts

+7
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,11 @@ import Animation from "./classes/Animation";
22
import Curves from "./classes/Curves";
33
import LED from "./classes/LED";
44
import LEDArray from "./classes/LEDArray";
5+
6+
/*
7+
8+
No logic should go in this file. Only direct imports and exports.
9+
10+
*/
11+
512
export { Animation, Curves, LED, LEDArray };

0 commit comments

Comments
 (0)