From e693b36865b5396d01cc77e7b6aa8b132812275a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigui=20Kess=C3=A9=20Emmanuel?= Date: Wed, 25 Dec 2024 10:00:11 +0100 Subject: [PATCH 1/2] :pencil2: Rename `project` to `destination` from the CLI README.md --- libs/create-qwikdev-astro/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/create-qwikdev-astro/README.md b/libs/create-qwikdev-astro/README.md index c7fdcb1a..0181564f 100644 --- a/libs/create-qwikdev-astro/README.md +++ b/libs/create-qwikdev-astro/README.md @@ -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. From 265eeddfdc73a03ba0e70203acf85f9a2892be23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigui=20Kess=C3=A9=20Emmanuel?= Date: Wed, 25 Dec 2024 10:21:26 +0100 Subject: [PATCH 2/2] :white_check_mark: Test base files for all templates --- libs/create-qwikdev-astro/tests/cli.spec.ts | 32 +++++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/libs/create-qwikdev-astro/tests/cli.spec.ts b/libs/create-qwikdev-astro/tests/cli.spec.ts index a2f2b3be..0af4b2d0 100644 --- a/libs/create-qwikdev-astro/tests/cli.spec.ts +++ b/libs/create-qwikdev-astro/tests/cli.spec.ts @@ -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) => {