Skip to content

Commit fb25054

Browse files
committed
chore: add jest config, fix tslint
1 parent 2ad0613 commit fb25054

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

jest.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
moduleFileExtensions: ["ts", "js"],
3+
transform: {
4+
"\\.ts$": "ts-jest"
5+
},
6+
globals: {
7+
"ts-jest": {
8+
tsConfig: "tsconfig.json"
9+
}
10+
},
11+
testMatch: ["**/test/**/*.test.ts"],
12+
testPathIgnorePatterns: ["/node_modules/"]
13+
};

src/test/example.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
test('1 + 1 = 2', () => {
1+
test("1 + 1 = 2", () => {
22
expect(1 + 1).toEqual(2);
33
});

0 commit comments

Comments
 (0)