Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add github template #1276

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add required test (though it's frustrating because the contents will …
…change)
  • Loading branch information
Fil committed Apr 22, 2024
commit f10a8b467fa7ddfff24cf751f000b2f558912b2b
41 changes: 41 additions & 0 deletions test/create-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,47 @@ describe("create", () => {
])
);
});
it("instantiates the github template", async () => {
const effects = new TestCreateEffects();
effects.clack.inputs.push(
"./template-github", // Where to create your project?
"GitHub Stats", // What to title your project?
"github", // Include sample files to help you get started?
"", // token
"", // repos or org
null, // Install dependencies?
false // Initialize git repository?
);
await create(effects);
assert.deepStrictEqual(
new Set(effects.outputs.keys()),
new Set([
"template-github/README.md",
"template-github/docs/clone.json.ts",
"template-github/docs/collaborations.md",
"template-github/docs/commits.json.ts",
"template-github/docs/components/DOM.js",
"template-github/docs/components/color-legend.js",
"template-github/docs/components/force-graph.js",
"template-github/docs/components/plural.js",
"template-github/docs/components/treemap.js",
"template-github/docs/config.json.ts",
"template-github/docs/config.ts",
"template-github/docs/files.json.ts",
"template-github/docs/files.md",
"template-github/docs/github-repos.ts",
"template-github/docs/github.ts",
"template-github/docs/index.md",
"template-github/docs/issues.json.ts",
"template-github/docs/issues.md",
"template-github/docs/repos.json.ts",
"template-github/docs/repos.md",
"template-github/docs/user.json.ts",
"template-github/docs/user.md",
"template-github/package.json"
])
);
});
});

class TestCreateEffects implements CreateEffects {
Expand Down
Loading