next.test.js 729 B

1234567891011121314151617181920
  1. import assert from 'node:assert/strict';
  2. import { describe, it } from 'node:test';
  3. import { next } from '../dist/index.js';
  4. import { setup } from './utils.js';
  5. describe('next steps', () => {
  6. const fixture = setup();
  7. it('no arguments', async () => {
  8. await next({ skipHouston: false, cwd: './it/fixtures/not-empty', packageManager: 'npm' });
  9. assert.ok(fixture.hasMessage('Liftoff confirmed.'));
  10. assert.ok(fixture.hasMessage('npm run dev'));
  11. assert.ok(fixture.hasMessage('Good luck out there, astronaut!'));
  12. });
  13. it('--skip-houston', async () => {
  14. await next({ skipHouston: true, cwd: './it/fixtures/not-empty', packageManager: 'npm' });
  15. assert.ok(!fixture.hasMessage('Good luck out there, astronaut!'));
  16. });
  17. });