diff --git a/packages/astro/test/custom-404-md.test.js b/packages/astro/test/custom-404-md.nodetest.js similarity index 75% rename from packages/astro/test/custom-404-md.test.js rename to packages/astro/test/custom-404-md.nodetest.js index a7762004ff..0e668a720a 100644 --- a/packages/astro/test/custom-404-md.test.js +++ b/packages/astro/test/custom-404-md.nodetest.js @@ -1,6 +1,7 @@ -import { expect } from 'chai'; import * as cheerio from 'cheerio'; import { loadFixture } from './test-utils.js'; +import assert from 'node:assert/strict'; +import { after, describe, before, it } from 'node:test'; describe('Custom 404 Markdown', () => { let fixture; @@ -27,17 +28,17 @@ describe('Custom 404 Markdown', () => { const html = await fixture.fetch('/').then((res) => res.text()); $ = cheerio.load(html); - expect($('h1').text()).to.equal('Home'); + assert.strictEqual($('h1').text(), 'Home'); }); it('renders 404 for /abc', async () => { const res = await fixture.fetch('/a'); - expect(res.status).to.equal(404); + assert.strictEqual(res.status, 404); const html = await res.text(); $ = cheerio.load(html); - expect($('h1').text()).to.equal('Page not found'); + assert.strictEqual($('h1').text(), 'Page not found'); }); }); });