diff --git a/packages/astro/test/error-non-error.test.js b/packages/astro/test/error-non-error.nodetest.js similarity index 76% rename from packages/astro/test/error-non-error.test.js rename to packages/astro/test/error-non-error.nodetest.js index facf996335..66c386b9c1 100644 --- a/packages/astro/test/error-non-error.test.js +++ b/packages/astro/test/error-non-error.nodetest.js @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import assert from 'node:assert/strict'; +import { after, describe, before, it } from 'node:test'; import { loadFixture } from './test-utils.js'; describe('Can handle errors that are not instanceof Error', () => { @@ -23,11 +24,10 @@ describe('Can handle errors that are not instanceof Error', () => { let res = await fixture.fetch('/'); let html = await res.text(); - expect(html).to.include('Error'); - + assert.equal(html.includes('Error'), true); res = await fixture.fetch('/'); await res.text(); - expect(html).to.include('Error'); + assert.equal(html.includes('Error'), true); }); });