summaryrefslogtreecommitdiff
path: root/packages/create-astro/test/intro.test.js
blob: 9014da45709a2ddf12e9ed0976ec7750f786f106 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { expect } from 'chai';

import { intro } from '../dist/index.js';
import { setup } from './utils.js';

describe('intro', () => {
	const fixture = setup();

	it('no arguments', async () => {
		await intro({ skipHouston: false, version: '0.0.0', username: 'user' });
		expect(fixture.hasMessage('Houston:')).to.be.true;
		expect(fixture.hasMessage('Welcome to  astro  v0.0.0')).to.be.true;
	});
	it('--skip-houston', async () => {
		await intro({ skipHouston: true, version: '0.0.0', username: 'user' });
		expect(fixture.length()).to.eq(1);
		expect(fixture.hasMessage('Houston:')).to.be.false;
		expect(fixture.hasMessage('Launch sequence initiated')).to.be.true;
	});
});
n class='deletions'>-5/+7 2023-11-23fix scroll restoration issue on webKit browsers (#9186)Gravatar Martin Trapp 2-1/+7 * fix scroll restoration issue on webKit browsers * add changeset * Update .changeset/shaggy-socks-glow.md * Update .changeset/shaggy-socks-glow.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> 2023-11-23fix(middleware): rename internal middleware id (#9173)Gravatar Arsh 2-1/+6 * rename internal middleware id * add changeset 2023-11-23fix: Changelog formatting for 3.6.0 View Transition events (#9176)Gravatar Martin Trapp 1-3/+3 Co-authored-by: Eva Decker <itsevadecker@gmail.com> 2023-11-22[ci] formatGravatar Eva Decker 1-3/+3 2023-11-22Fix View Transitions code block formatting (#9174)Gravatar Eva Decker 1-3/+3 2023-11-22Rename entryPoint to entrypoint (#9161)Gravatar Bjorn Lu 14-26/+38 Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> 2023-11-22Fix esbuild warning for local dev (#9160)Gravatar Bjorn Lu 1-1/+1 2023-11-22[ci] release (#9165)astro@3.6.0Gravatar Houston (Bot) 34-90/+83 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>