feat: remove getUserInput (#59442)

This commit is contained in:
Oliver Eyton-Williams
2025-03-27 14:40:29 +01:00
committed by GitHub
parent 5b7b0d14ef
commit d6628979e9
133 changed files with 553 additions and 812 deletions
@@ -25,10 +25,6 @@ async function initTestFrame(e: InitTestFrameArg = { code: {} }) {
return out;
};
if (!e.getUserInput) {
e.getUserInput = () => code;
}
/* eslint-disable @typescript-eslint/no-unused-vars */
// Fake Deep Equal dependency
const DeepEqual = (a: Record<string, unknown>, b: Record<string, unknown>) =>
@@ -94,7 +90,7 @@ async function initTestFrame(e: InitTestFrameArg = { code: {} }) {
const test = await testPromise;
if (typeof test === 'function') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
await test(e.getUserInput);
await test();
}
return { pass: true };
} catch (err) {
-1
View File
@@ -19,7 +19,6 @@ export interface InitTestFrameArg {
contents?: string;
editableContents?: string;
};
getUserInput?: (fileName: string) => string;
loadEnzyme?: () => void;
}