From f4a6681a5f891b81d1062aac4245c1757101ba73 Mon Sep 17 00:00:00 2001 From: hung-nguyen Date: Tue, 14 May 2024 14:25:23 +0700 Subject: [PATCH] refactor: audit code --- packages/create-plugin/__e2e__/e2e.test.ts | 28 ++++++++++--------- .../create-plugin/__e2e__/fixtures/index.ts | 13 +++++++++ 2 files changed, 28 insertions(+), 13 deletions(-) create mode 100644 packages/create-plugin/__e2e__/fixtures/index.ts diff --git a/packages/create-plugin/__e2e__/e2e.test.ts b/packages/create-plugin/__e2e__/e2e.test.ts index 987a01f890..23a19065b2 100644 --- a/packages/create-plugin/__e2e__/e2e.test.ts +++ b/packages/create-plugin/__e2e__/e2e.test.ts @@ -15,20 +15,22 @@ import { readPluginManifestJson, } from "./utils/verification"; import { getBoundMessage } from "../src/messages"; -import { pattern as requiredOptions } from "./fixtures/requiredOptions"; -import { pattern as pluginNameContain64Chars } from "./fixtures/pluginNameContain64Chars"; -import { pattern as pluginDescriptionContain200Chars } from "./fixtures/pluginDescriptionContain200Chars"; -import { pattern as allOptions } from "./fixtures/allOptions"; -import { pattern as languageEN } from "./fixtures/languageEN"; -import { pattern as languageJA } from "./fixtures/languageJA"; -import { pattern as emptyOutputDir } from "./fixtures/emptyOutputDir"; -import { pattern as pluginNameContain65Chars } from "./fixtures/pluginNameContain65Chars"; -import { pattern as pluginDescriptionContain201Chars } from "./fixtures/pluginDescriptionContain201Chars"; -import { pattern as existOutputDir } from "./fixtures/existOutputDir"; -import { pattern as createKintonePluginCommand } from "./fixtures/createKintonePluginCommand"; -import { pattern as minimumTemplate } from "./fixtures/minimumTemplate"; -import { pattern as modernTemplate } from "./fixtures/modernTemplate"; import { CreatePlugin } from "./utils/CreatePlugin"; +import { + requiredOptions, + pluginNameContain64Chars, + pluginDescriptionContain200Chars, + allOptions, + languageEN, + languageJA, + emptyOutputDir, + pluginNameContain65Chars, + pluginDescriptionContain201Chars, + existOutputDir, + createKintonePluginCommand, + minimumTemplate, + modernTemplate, +} from "./fixtures"; export type TestPattern = { description: string; diff --git a/packages/create-plugin/__e2e__/fixtures/index.ts b/packages/create-plugin/__e2e__/fixtures/index.ts new file mode 100644 index 0000000000..a4a3b9a0bd --- /dev/null +++ b/packages/create-plugin/__e2e__/fixtures/index.ts @@ -0,0 +1,13 @@ +export { pattern as requiredOptions } from "./requiredOptions"; +export { pattern as pluginNameContain64Chars } from "./pluginNameContain64Chars"; +export { pattern as pluginDescriptionContain200Chars } from "./pluginDescriptionContain200Chars"; +export { pattern as allOptions } from "./allOptions"; +export { pattern as languageEN } from "./languageEN"; +export { pattern as languageJA } from "./languageJA"; +export { pattern as emptyOutputDir } from "./emptyOutputDir"; +export { pattern as pluginNameContain65Chars } from "./pluginNameContain65Chars"; +export { pattern as pluginDescriptionContain201Chars } from "./pluginDescriptionContain201Chars"; +export { pattern as existOutputDir } from "./existOutputDir"; +export { pattern as createKintonePluginCommand } from "./createKintonePluginCommand"; +export { pattern as minimumTemplate } from "./minimumTemplate"; +export { pattern as modernTemplate } from "./modernTemplate";