diff options
author | 2024-11-04 16:15:11 +0100 | |
---|---|---|
committer | 2024-11-04 16:15:11 +0100 | |
commit | 9263e965932b9a6a116801c063c6b7105c39643e (patch) | |
tree | 8ed6e7f9b048752d70d53744eefbda2166cbcbb9 /packages/create-astro/test/context.test.js | |
parent | 731b69712b0e9c5d5a4058db3fa3e8bf628c7aad (diff) | |
download | astro-9263e965932b9a6a116801c063c6b7105c39643e.tar.gz astro-9263e965932b9a6a116801c063c6b7105c39643e.tar.zst astro-9263e965932b9a6a116801c063c6b7105c39643e.zip |
create-astro updates (#12083)
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Reuben Tier <otterlord.dev@gmail.com>
Diffstat (limited to 'packages/create-astro/test/context.test.js')
-rw-r--r-- | packages/create-astro/test/context.test.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/create-astro/test/context.test.js b/packages/create-astro/test/context.test.js index 48d2d4297..b4e67a8c6 100644 --- a/packages/create-astro/test/context.test.js +++ b/packages/create-astro/test/context.test.js @@ -51,6 +51,11 @@ describe('context', () => { assert.deepEqual(ctx.install, true); }); + it('add', async () => { + const ctx = await getContext(['--add', 'node']); + assert.deepEqual(ctx.add, ['node']); + }); + it('no install', async () => { const ctx = await getContext(['--no-install']); assert.deepEqual(ctx.install, false); @@ -65,9 +70,4 @@ describe('context', () => { const ctx = await getContext(['--no-git']); assert.deepEqual(ctx.git, false); }); - - it('typescript', async () => { - const ctx = await getContext(['--typescript', 'strict']); - assert.deepEqual(ctx.typescript, 'strict'); - }); }); |