diff options
author | 2024-01-31 21:37:34 +1300 | |
---|---|---|
committer | 2024-01-31 08:37:34 +0000 | |
commit | 11d5e52710def26b4fd8dcff503c9ff4b87f6f5a (patch) | |
tree | b874374356553bd2e2023334aa540e4437fffc69 /packages/integrations/mdx/test/invalid-mdx-component.test.js | |
parent | 6dbafb8f5f34d54124a564f70b1cc3d152855bf2 (diff) | |
download | astro-11d5e52710def26b4fd8dcff503c9ff4b87f6f5a.tar.gz astro-11d5e52710def26b4fd8dcff503c9ff4b87f6f5a.tar.zst astro-11d5e52710def26b4fd8dcff503c9ff4b87f6f5a.zip |
migrate MDX tests (#9894)
Diffstat (limited to 'packages/integrations/mdx/test/invalid-mdx-component.test.js')
-rw-r--r-- | packages/integrations/mdx/test/invalid-mdx-component.test.js | 8 |
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/ ); }); |