diff options
author | 2024-02-13 20:11:59 +0530 | |
---|---|---|
committer | 2024-02-13 14:41:59 +0000 | |
commit | 3007d24c98e607442903a3c0aaaea195390a25e7 (patch) | |
tree | 8a993608a3d35b47c8c5e016cc45359f4578af64 /packages/create-astro/test/next.test.js | |
parent | bd877d389a6ebdd995e253bcb9daccef52b2277f (diff) | |
download | astro-3007d24c98e607442903a3c0aaaea195390a25e7.tar.gz astro-3007d24c98e607442903a3c0aaaea195390a25e7.tar.zst astro-3007d24c98e607442903a3c0aaaea195390a25e7.zip |
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>
Diffstat (limited to 'packages/create-astro/test/next.test.js')
-rw-r--r-- | packages/create-astro/test/next.test.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/create-astro/test/next.test.js b/packages/create-astro/test/next.test.js index 07de90d50..5b9b22b30 100644 --- a/packages/create-astro/test/next.test.js +++ b/packages/create-astro/test/next.test.js @@ -1,5 +1,5 @@ -import { expect } from 'chai'; - +import assert from 'node:assert/strict'; +import { describe, it } from 'node:test'; import { next } from '../dist/index.js'; import { setup } from './utils.js'; @@ -8,13 +8,13 @@ describe('next steps', () => { it('no arguments', async () => { await next({ skipHouston: false, cwd: './it/fixtures/not-empty', packageManager: 'npm' }); - expect(fixture.hasMessage('Liftoff confirmed.')).to.be.true; - expect(fixture.hasMessage('npm run dev')).to.be.true; - expect(fixture.hasMessage('Good luck out there, astronaut!')).to.be.true; + 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' }); - expect(fixture.hasMessage('Good luck out there, astronaut!')).to.be.false; + assert.ok(!fixture.hasMessage('Good luck out there, astronaut!')); }); }); |