Skip to content

Commit 4273be3

Browse files
committed
Set up testing
1 parent 7400aa3 commit 4273be3

File tree

4 files changed

+6945
-669
lines changed

4 files changed

+6945
-669
lines changed

Diff for: __tests__/index.test.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
describe("Simple test", () => {
2+
test("it passes", () => {
3+
expect(true).toEqual(true);
4+
});
5+
});

Diff for: jest.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
testEnvironment: "node",
3+
verbose: true,
4+
coverageDirectory: "coverage",
5+
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}"],
6+
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
7+
};
8+

0 commit comments

Comments
 (0)