2024-02-13 09:41:59 -05:00
|
|
|
import assert from 'node:assert/strict';
|
|
|
|
import { describe, it } from 'node:test';
|
2023-02-06 11:19:37 -05:00
|
|
|
import { next } from '../dist/index.js';
|
|
|
|
import { setup } from './utils.js';
|
|
|
|
|
|
|
|
describe('next steps', () => {
|
|
|
|
const fixture = setup();
|
|
|
|
|
|
|
|
it('no arguments', async () => {
|
2023-09-06 04:15:10 -05:00
|
|
|
await next({ skipHouston: false, cwd: './it/fixtures/not-empty', packageManager: 'npm' });
|
2024-02-13 09:41:59 -05:00
|
|
|
assert.ok(fixture.hasMessage('Liftoff confirmed.'));
|
|
|
|
assert.ok(fixture.hasMessage('npm run dev'));
|
|
|
|
assert.ok(fixture.hasMessage('Good luck out there, astronaut!'));
|
2023-02-06 11:21:48 -05:00
|
|
|
});
|
2023-02-06 11:19:37 -05:00
|
|
|
|
|
|
|
it('--skip-houston', async () => {
|
2023-09-06 04:15:10 -05:00
|
|
|
await next({ skipHouston: true, cwd: './it/fixtures/not-empty', packageManager: 'npm' });
|
2024-02-13 09:41:59 -05:00
|
|
|
assert.ok(!fixture.hasMessage('Good luck out there, astronaut!'));
|
2023-02-06 11:21:48 -05:00
|
|
|
});
|
|
|
|
});
|