Skip to content

Commit

Permalink
chore: update tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
itsacoyote committed Aug 16, 2024
1 parent d61b466 commit 155e838
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
7 changes: 0 additions & 7 deletions tests/tsconfig.json

This file was deleted.

6 changes: 4 additions & 2 deletions tests/utils/formatters.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, expectTypeOf, test } from "vitest";

import { useDecimals } from "../../src/utils/formatters";
import { useDecimals } from "../../src/utils/formatters.js";

import type { BigNumberish } from "ethers";

Expand All @@ -16,7 +16,9 @@ describe("useDecimals", () => {
test("ETH decimal value", () => {
const { decimalToBigNumber } = useDecimals(18);
expectTypeOf(decimalToBigNumber("1.5")).toEqualTypeOf<BigNumberish>();
expect(decimalToBigNumber("1.5").toString()).toEqual("1500000000000000000");
expect(decimalToBigNumber("1.5").toString()).toEqual(
"1500000000000000000"
);
});

test("USDC decimal value", () => {
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"sourceMap": true
"sourceMap": true,
"rootDir": "./src",
"removeComments": true
},
"extends": "./tsconfig.json",
"exclude": ["**/*.spec.ts"]
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./bin",
"rootDir": "./src",
"rootDir": ".",
"esModuleInterop": true,
"strict": true,
"resolveJsonModule": true
},
"include": ["./src"]
"include": ["src/**/*", "tests/**/*"]
}

0 comments on commit 155e838

Please sign in to comment.