Skip to content

Commit

Permalink
test: verify with modern template
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-cybo committed May 7, 2024
1 parent f5ad571 commit 6bd4b6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/create-plugin/__e2e__/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export type TestPattern = {
outputDir: string;
questionsInput: QuestionInput[];
commandArgument?: string;
template?: "minimum" | "modern";
};
expected: {
success?: {
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 6bd4b6c

Please sign in to comment.