diff --git a/packages/astro/test/error-bad-js.test.js b/packages/astro/test/error-bad-js.nodetest.js similarity index 75% rename from packages/astro/test/error-bad-js.test.js rename to packages/astro/test/error-bad-js.nodetest.js index dc04016f50..43e35ee950 100644 --- a/packages/astro/test/error-bad-js.test.js +++ b/packages/astro/test/error-bad-js.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('Errors in JavaScript', () => { @@ -26,11 +27,11 @@ describe('Errors in JavaScript', () => { let res = await fixture.fetch('/'); let html = await res.text(); - expect(html).to.include('ReferenceError'); + assert.equal(html.includes('ReferenceError'), true) res = await fixture.fetch('/'); await res.text(); - expect(html).to.include('ReferenceError'); + assert.equal(html.includes('ReferenceError'), true) }); });