diff --git a/.changeset/renovate-4f0c2e3.md b/.changeset/renovate-4f0c2e3.md index 687aed38919f5..9eb7ca8ed64a0 100644 --- a/.changeset/renovate-4f0c2e3.md +++ b/.changeset/renovate-4f0c2e3.md @@ -1,5 +1,10 @@ --- -'@backstage/cli': patch +'@backstage/cli': minor --- Updated dependency `eslint-plugin-jest` to `^27.0.0`. + +Note that this major update to Jest plugin contains some breaking changes. This +means that some of your tests may start seeing some new lint errors. [Read about +them +here](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md#2700-2022-08-28). diff --git a/packages/cli/src/commands/test.ts b/packages/cli/src/commands/test.ts index 88769aec1a898..ec1bf8a7a0248 100644 --- a/packages/cli/src/commands/test.ts +++ b/packages/cli/src/commands/test.ts @@ -82,6 +82,5 @@ export default async (_opts: OptionValues, cmd: Command) => { (process.stdout as any)._handle.setBlocking(true); } - // eslint-disable-next-line jest/no-jest-import await require('jest').run(args); }; diff --git a/packages/cli/src/lib/parallel.test.ts b/packages/cli/src/lib/parallel.test.ts index 032d66afac194..b04831ff3b102 100644 --- a/packages/cli/src/lib/parallel.test.ts +++ b/packages/cli/src/lib/parallel.test.ts @@ -43,7 +43,7 @@ describe('parseParallelismOption', () => { }); it.each([['on'], [2.5], ['2.5']])('throws error for %p', value => { - expect(() => parseParallelismOption(value as any)).toThrowError( + expect(() => parseParallelismOption(value as any)).toThrow( `Parallel option value '${value}' is not a boolean or integer`, ); });