Skip to content

Commit

Permalink
deps: jest ^28.0.0 (#856)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Ryan Ling <[email protected]>
  • Loading branch information
3 people authored May 3, 2022
1 parent f5c9a5c commit fb2f6b6
Show file tree
Hide file tree
Showing 6 changed files with 496 additions and 745 deletions.
7 changes: 7 additions & 0 deletions .changeset/thin-olives-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'skuba': patch
---

deps: Jest 28

This major release includes breaking changes. See the [announcement post](https://jestjs.io/blog/2022/04/25/jest-28) for more information.
4 changes: 3 additions & 1 deletion config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"compilerOptions": {
"incremental": true,
"moduleResolution": "node",
"resolveJsonModule": true
"resolveJsonModule": true,
// TODO: facebook/jest#12772
"skipLibCheck": true
},
"extends": "tsconfig-seek"
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"@octokit/rest": "^18.12.0",
"@octokit/types": "^6.34.0",
"@types/jest": "^27.4.0",
"@types/jest": "^27.5.0",
"@types/node": ">=14.18",
"chalk": "^4.1.0",
"concurrently": "^7.0.0",
Expand All @@ -25,7 +25,7 @@
"ignore": "^5.1.8",
"is-installed-globally": "^0.4.0",
"isomorphic-git": "^1.11.1",
"jest": "^27.4.5",
"jest": "^28.0.3",
"latest-version": "^5.1.0",
"lodash.mergewith": "^4.6.2",
"normalize-package-data": "^4.0.0",
Expand All @@ -39,7 +39,7 @@
"serialize-error": "^8.0.1",
"simple-git": "^3.5.0",
"strip-ansi": "^6.0.1",
"ts-jest": "^27.1.2",
"ts-jest": "^28.0.1",
"ts-node": "^10.5.0",
"ts-node-dev": "^2.0.0-0",
"tsconfig-paths": "^3.11.0",
Expand All @@ -50,7 +50,7 @@
"devDependencies": {
"@changesets/cli": "2.22.0",
"@changesets/get-github-info": "0.5.0",
"@jest/reporters": "27.5.1",
"@jest/reporters": "28.0.3",
"@types/ejs": "3.1.0",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",
Expand Down
4 changes: 2 additions & 2 deletions src/cli/test/reporters/github/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AggregatedResult, Context } from '@jest/reporters';
import type { AggregatedResult, TestContext } from '@jest/reporters';

import * as GitHub from '../../../../api/github';
import { log } from '../../../../utils/logging';
Expand All @@ -22,7 +22,7 @@ beforeEach(() => {

afterEach(jest.resetAllMocks);

const context = new Set<Context>();
const context = new Set<TestContext>();

const failResults: AggregatedResult = {
numFailedTestSuites: 1,
Expand Down
4 changes: 2 additions & 2 deletions src/cli/test/reporters/github/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { inspect } from 'util';

import type { Context, Reporter } from '@jest/reporters';
import type { Reporter, TestContext } from '@jest/reporters';
import type { AggregatedResult } from '@jest/test-result';

import * as GitHub from '../../../../api/github';
Expand All @@ -15,7 +15,7 @@ import { generateAnnotationEntries } from './annotations';

export default class GitHubReporter implements Pick<Reporter, 'onRunComplete'> {
async onRunComplete(
_contexts: Set<Context>,
_contexts: Set<TestContext>,
{ testResults }: AggregatedResult,
): Promise<void> {
if (!enabledFromEnvironment()) {
Expand Down
Loading

0 comments on commit fb2f6b6

Please sign in to comment.