0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/create-astro/test/next.test.js
Shoaib Khan 3007d24c98
chore: Migrate all packages/create-astro/test to node:test (#10084)
* chore: Migrate All packages/create-astro/test to node:test

* Some minor fix

* Requested Changes done

* Reopen

* Apply suggestions from code review

* let's test with concurrency

* chore: fix possible false positive tests

* todo test

* skip tests

* Apply suggestions from code review

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-02-13 14:41:59 +00:00

20 lines
729 B
JavaScript

import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { next } from '../dist/index.js';
import { setup } from './utils.js';
describe('next steps', () => {
const fixture = setup();
it('no arguments', async () => {
await next({ skipHouston: false, cwd: './it/fixtures/not-empty', packageManager: 'npm' });
assert.ok(fixture.hasMessage('Liftoff confirmed.'));
assert.ok(fixture.hasMessage('npm run dev'));
assert.ok(fixture.hasMessage('Good luck out there, astronaut!'));
});
it('--skip-houston', async () => {
await next({ skipHouston: true, cwd: './it/fixtures/not-empty', packageManager: 'npm' });
assert.ok(!fixture.hasMessage('Good luck out there, astronaut!'));
});
});