summaryrefslogtreecommitdiff
path: root/packages/create-astro/test/template.test.js
diff options
context:
space:
mode:
authorGravatar Reuben Tier <64310361+TheOtterlord@users.noreply.github.com> 2023-09-22 14:18:46 +0100
committerGravatar GitHub <noreply@github.com> 2023-09-22 21:18:46 +0800
commitb64dd45c0d641f9f2ed997e2cbdf8a6b0193195f (patch)
treed87d20a7a157983e6118b0f311d809daa0910ae7 /packages/create-astro/test/template.test.js
parentbd00ad776db9d6d3bde323d0ecf8065f186b3a57 (diff)
downloadastro-b64dd45c0d641f9f2ed997e2cbdf8a6b0193195f.tar.gz
astro-b64dd45c0d641f9f2ed997e2cbdf8a6b0193195f.tar.zst
astro-b64dd45c0d641f9f2ed997e2cbdf8a6b0193195f.zip
Fix behaviour regression in create-astro (#8634)
Diffstat (limited to '')
-rw-r--r--packages/create-astro/test/template.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/create-astro/test/template.test.js b/packages/create-astro/test/template.test.js
index 66c7f5446..cf6b45f77 100644
--- a/packages/create-astro/test/template.test.js
+++ b/packages/create-astro/test/template.test.js
@@ -33,4 +33,11 @@ describe('template', () => {
expect(fixture.hasMessage('Using blog as project template')).to.be.true;
});
+
+ it('minimal (--yes)', async () => {
+ const context = { template: 'minimal', cwd: '', dryRun: true, yes: true, prompt: () => {} };
+ await template(context);
+
+ expect(fixture.hasMessage('Using minimal as project template')).to.be.true;
+ })
});