Skip to content

Commit

Permalink
build: 📦 use ts-essentials@10 (#312)
Browse files Browse the repository at this point in the history
* build: 📦 use ts-essentials@10

* docs: 📄 changelog

* Remove conditional-type-checks

---------

Co-authored-by: Alexey Berezin <[email protected]>
Co-authored-by: Alexey Berezin <[email protected]>
  • Loading branch information
3 people committed Jun 25, 2024
1 parent 2fca4bd commit 6098a2c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-frogs-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"website": patch
---

Use ts-essentials@10
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": "^9.3.1",
"ts-morph": "^17.0.1",
"vitepress": "1.0.0-alpha.51"
},
Expand Down
27 changes: 11 additions & 16 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 6098a2c

Please sign in to comment.