Skip to content

Commit

Permalink
Rename test file to .ts
Browse files Browse the repository at this point in the history
  • Loading branch information
waxlamp committed Mar 18, 2021
1 parent d26f229 commit 1d7f428
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
roots: [
"<rootDir>"
],
testMatch: [
"**/test/**/*\\.test\\.(ts|tsx|js)",
],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest"
},
}
7 changes: 0 additions & 7 deletions test/multinet.test.js

This file was deleted.

9 changes: 9 additions & 0 deletions test/multinet.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { multinetApi } from '../src/index';

function add(a: number, b: number): number {
return a + b + 1;
}

test('hello world', () => {
expect(add(3, 4)).toBe(7);
});

0 comments on commit 1d7f428

Please sign in to comment.