Skip to content

Commit

Permalink
Merge branch 'main' into fix_broken_link
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammednumaan authored Jan 15, 2025
2 parents d59a915 + fc5a39b commit 40cf701
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 120 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"strip-json-comments": "^3.1.1",
"tempy": "^1.0.0",
"ts-node": "^10.5.0",
"tstyche": "^2.0.0",
"tstyche": "^3.0.0",
"typescript": "^5.0.4",
"webpack": "^5.68.0",
"webpack-node-externals": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/diff-sequences/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"devDependencies": {
"@fast-check/jest": "^2.0.0",
"benchmark": "^2.1.4",
"diff": "^5.0.0"
"diff": "^7.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@types/graceful-fs": "^4.1.3",
"@types/micromatch": "^4.0.7",
"@types/parse-json": "^4.0.0",
"esbuild": "^0.23.0",
"esbuild": "^0.24.0",
"esbuild-register": "^3.4.0",
"semver": "^7.5.3",
"ts-node": "^10.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-expect/__typetests__/jest-expect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ describe('JestExpect', () => {
});

test('is superset of `Expect`', () => {
expect<typeof jestExpect>().type.toMatch<typeof _expect>();
expect(jestExpect).type.toBeAssignableTo(_expect);

expect<typeof _expect>().type.not.toMatch<typeof jestExpect>();
expect(_expect).type.not.toBeAssignableTo(jestExpect);
});

test('allows type inference of the `actual` argument', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-mock/__typetests__/mock-functions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('jest.fn()', () => {

test('models typings of mocked function', () => {
// eslint-disable-next-line @typescript-eslint/ban-types
expect(fn()).type.toMatch<Function>();
expect(fn()).type.toBeAssignableTo<Function>();

expect(fn()).type.toBe<Mock<(...args: Array<unknown>) => unknown>>();
expect(fn(() => {})).type.toBe<Mock<() => void>>();
Expand Down Expand Up @@ -424,7 +424,7 @@ describe('jest.spyOn()', () => {

test('models typings of spied object', () => {
// eslint-disable-next-line @typescript-eslint/ban-types
expect(spy).type.not.toMatch<Function>();
expect(spy).type.not.toBeAssignableTo<Function>();

expect(spy()).type.toRaiseError();
expect(new spy()).type.toRaiseError();
Expand Down
3 changes: 2 additions & 1 deletion tstyche.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"testFileMatch": ["packages/*/__typetests__/*.test.ts"]
"$schema": "https://tstyche.org/schemas/config.json",
"testFileMatch": ["packages/*/__typetests__/**/*.test.ts"]
}
Loading

0 comments on commit 40cf701

Please sign in to comment.