summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/invalid-mdx-component.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/mdx/test/invalid-mdx-component.test.js')
-rw-r--r--packages/integrations/mdx/test/invalid-mdx-component.test.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/integrations/mdx/test/invalid-mdx-component.test.js b/packages/integrations/mdx/test/invalid-mdx-component.test.js
index 4f96a9fa2..4621b73da 100644
--- a/packages/integrations/mdx/test/invalid-mdx-component.test.js
+++ b/packages/integrations/mdx/test/invalid-mdx-component.test.js
@@ -1,4 +1,5 @@
-import { expect } from 'chai';
+import { describe, it, before } from 'node:test';
+import * as assert from 'node:assert/strict';
import { loadFixture } from '../../../astro/test/test-utils.js';
import mdx from '../dist/index.js';
@@ -28,8 +29,9 @@ describe('MDX component with runtime error', () => {
});
it('Throws the right error', async () => {
- expect(error).to.exist;
- expect(error?.hint).to.match(
+ assert.ok(error);
+ assert.match(
+ error?.hint,
/This issue often occurs when your MDX component encounters runtime errors/
);
});