From 6bd4b6ce120a1f54ed279004b93ddb67f3c91f50 Mon Sep 17 00:00:00 2001 From: hung-nguyen Date: Tue, 7 May 2024 07:51:05 +0700 Subject: [PATCH] test: verify with modern template --- packages/create-plugin/__e2e__/e2e.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/create-plugin/__e2e__/e2e.test.ts b/packages/create-plugin/__e2e__/e2e.test.ts index bd05ebd36c..80d3896633 100644 --- a/packages/create-plugin/__e2e__/e2e.test.ts +++ b/packages/create-plugin/__e2e__/e2e.test.ts @@ -33,6 +33,7 @@ export type TestPattern = { outputDir: string; questionsInput: QuestionInput[]; commandArgument?: string; + template?: "minimum" | "modern"; }; expected: { success?: { @@ -83,7 +84,10 @@ describe("create-plugin", function () { const pluginDir = path.resolve(workingDir, input.outputDir); assert.ok(fs.existsSync(pluginDir), "plugin dir is not created."); - const actualManifestJson = readPluginManifestJson(pluginDir); + const actualManifestJson = readPluginManifestJson( + pluginDir, + input.template, + ); assertObjectIncludes(actualManifestJson, expected.success.manifestJson); }