Skip to content

Commit

Permalink
remove deprecations packages/test-utils/src/testUtils/Keyboard.js:28
Browse files Browse the repository at this point in the history
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
  • Loading branch information
cmpadden committed Dec 16, 2021
1 parent 26cbea8 commit 771b9c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 272 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-stingrays-decide.md
@@ -0,0 +1,5 @@
---
'@backstage/test-utils': patch
---

Remove deprecated `Keyboard` class which has been superseded by `@testing-library/user-event#userEvent`
46 changes: 0 additions & 46 deletions packages/test-utils/api-report.md
Expand Up @@ -34,52 +34,6 @@ export type ErrorWithContext = {
context?: ErrorApiErrorContext;
};

// @public @deprecated (undocumented)
export class Keyboard {
constructor(
target: any,
{
debug,
}?: {
debug?: boolean | undefined;
},
);
// (undocumented)
click(): Promise<void>;
// (undocumented)
debug: boolean;
// (undocumented)
document: any;
// (undocumented)
enter(value: any): Promise<void>;
// (undocumented)
escape(): Promise<void>;
// (undocumented)
get focused(): any;
// (undocumented)
static fromReadableInput(input: any): any;
// (undocumented)
_log(message: any, ...args: any[]): void;
// (undocumented)
_pretty(element: any): string;
// (undocumented)
send(chars: any): Promise<void>;
// (undocumented)
_sendKey(key: any, charCode: any, action: any): Promise<void>;
// (undocumented)
tab(): Promise<void>;
// (undocumented)
static toReadableInput(chars: any): any;
// (undocumented)
toString(): string;
// (undocumented)
static type(target: any, input: any): Promise<void>;
// (undocumented)
type(input: any): Promise<void>;
// (undocumented)
static typeDebug(target: any, input: any): Promise<void>;
}

// @public
export type LogCollector = AsyncLogCollector | SyncLogCollector;

Expand Down
225 changes: 0 additions & 225 deletions packages/test-utils/src/testUtils/Keyboard.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/test-utils/src/testUtils/index.tsx
Expand Up @@ -19,7 +19,6 @@ export { default as mockBreakpoint } from './mockBreakpoint';
export { wrapInTestApp, renderInTestApp } from './appWrappers';
export type { TestAppOptions } from './appWrappers';
export * from './msw';
export * from './Keyboard';
export * from './logCollector';
export * from './testingLibrary';
export { TestApiProvider, TestApiRegistry } from './TestApiProvider';
Expand Down

0 comments on commit 771b9c0

Please sign in to comment.