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

CLI Tweaks #190

Merged
merged 2 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions libs/create-qwikdev-astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
- **With `NPM`**:

```bash
npm create @qwikdev/astro@latest [project] [adapter] [...options]
npm create @qwikdev/astro@latest [destination] [adapter] [...options]
```

- **With `Yarn`**:

```bash
yarn create @qwikdev/astro [project] [adapter] [...options]
yarn create @qwikdev/astro [destination] [adapter] [...options]
```

- **With `PNPM`**:

```bash
pnpm create @qwikdev/astro [project] [adapter] [...options]
pnpm create @qwikdev/astro [destination] [adapter] [...options]
```

- **With `Bun`**:

```bash
bun create @qwikdev/astro [project] [adapter] [...options]
bun create @qwikdev/astro [destination] [adapter] [...options]
```

The `create @qwikdev/astro` command runs interactively without any arguments or options.
Expand Down
32 changes: 29 additions & 3 deletions libs/create-qwikdev-astro/tests/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,38 @@ const getGeneratedDirs = (options: GeneratedOptions = {}): string[] => {
return dirs;
};

test.group(`create ${integration}`, (group) => {
group.setup(setup);
test.group(`create ${integration} app`, (group) => {
group.each.setup(setup);

test(`should create a new ${integration} app`, async (context) => {
test("without adapter", async (context) => {
return testRun([], context);
});

test("without adpater and using Biome", async (context) => {
return testRun(["--biome"], context, {
biome: true
});
});

test("with Node.js adapter", async (context) => {
return testRun(["node"], context);
});

test("with Node.js adapter and using Biome", async (context) => {
return testRun(["node", "--biome"], context, {
biome: true
});
});

test("with Deno adapter", async (context) => {
return testRun(["deno"], context);
});

test("with Deno adapter and using Biome", async (context) => {
return testRun(["deno", "--biome"], context, {
biome: true
});
});
});

test.group(`create ${integration} with yes and no options`, (group) => {
Expand Down
Loading