2024-02-13 20:11:59 +05:30
|
|
|
import assert from 'node:assert/strict';
|
|
|
|
import { describe, it } from 'node:test';
|
2023-02-06 10:19:37 -06: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 02:15:10 -07:00
|
|
|
await next({ skipHouston: false, cwd: './it/fixtures/not-empty', packageManager: 'npm' });
|
2024-02-13 20:11:59 +05:30
|
|
|
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 16:21:48 +00:00
|
|
|
});
|
2023-02-06 10:19:37 -06:00
|
|
|
|
|
|
|
it('--skip-houston', async () => {
|
2023-09-06 02:15:10 -07:00
|
|
|
await next({ skipHouston: true, cwd: './it/fixtures/not-empty', packageManager: 'npm' });
|
2024-02-13 20:11:59 +05:30
|
|
|
assert.ok(!fixture.hasMessage('Good luck out there, astronaut!'));
|
2023-02-06 16:21:48 +00:00
|
|
|
});
|
|
|
|
});
|