Skip to content

Commit

Permalink
Remove conditional-type-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sz-piotr committed Jun 25, 2024
1 parent 9c28ead commit 96e440a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@types/node": "^20.12.7",
"chai": "^4.4.1",
"chai-as-promised": "^7.1.1",
"conditional-type-checks": "^1.0.6",
"ts-essentials": "^10.0.0",
"mocha": "10.2.0",
"rimraf": "^4.4.1",
"ts-node": "^10.9.2",
Expand Down
11 changes: 3 additions & 8 deletions packages/earl/src/mocks/mockFn.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { expect } from 'chai'
import type { AssertTrue, IsExact } from 'conditional-type-checks'
import { isExact } from 'ts-essentials'

import { expect as earl } from '../expect.js'
import { isMockFn, mockFn } from './mockFn.js'
import type { MockFunction, MockFunctionOf } from './types/index.js'
import type { MockFunction } from './types/index.js'

const sum = (a: number, b: number) => a + b

Expand Down Expand Up @@ -159,12 +159,7 @@ describe('Mock', () => {

expect(fn(2, 2)).to.eq(4)

type _ = AssertTrue<
IsExact<
MockFunction<[number, number], number>,
MockFunctionOf<Operation>
>
>
isExact<MockFunction<[number, number], number>>()(fn)
})
})

Expand Down
1 change: 0 additions & 1 deletion packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@types/lodash": "^4.14.191",
"fast-glob": "^3.2.12",
"lodash": "^4.17.21",
"ts-essentials": "^10.0.0",
"ts-morph": "^17.0.1",
"vitepress": "1.0.0-alpha.51"
},
Expand Down
14 changes: 3 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96e440a

Please sign in to comment.