diff options
author | 2022-08-08 17:33:35 -0500 | |
---|---|---|
committer | 2022-08-08 17:33:35 -0500 | |
commit | 4c2ca5352d0c4119ed2a9e5e0b78ce71eb1b414a (patch) | |
tree | 9d7cc9c2f8fe13f5aa52294f79d67f4a68e3a86b /packages/integrations/mdx/test/mdx-frontmatter.test.js | |
parent | 36cb503c8a8ea7c312ac408ceac27ab279104a25 (diff) | |
download | astro-4c2ca5352d0c4119ed2a9e5e0b78ce71eb1b414a.tar.gz astro-4c2ca5352d0c4119ed2a9e5e0b78ce71eb1b414a.tar.zst astro-4c2ca5352d0c4119ed2a9e5e0b78ce71eb1b414a.zip |
[MDX] Remove `frontmatterOptions` (#4204)
* feat: remove frontmatterOptions config
* test: remove custom frontmatter suite
* deps: remove remark-mdx-frontmatter
* docs: remove `frontmatterOptions` config
* chore: changeset
Diffstat (limited to 'packages/integrations/mdx/test/mdx-frontmatter.test.js')
-rw-r--r-- | packages/integrations/mdx/test/mdx-frontmatter.test.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/packages/integrations/mdx/test/mdx-frontmatter.test.js b/packages/integrations/mdx/test/mdx-frontmatter.test.js index 5f0316986..e69919bd5 100644 --- a/packages/integrations/mdx/test/mdx-frontmatter.test.js +++ b/packages/integrations/mdx/test/mdx-frontmatter.test.js @@ -56,21 +56,4 @@ describe('MDX frontmatter', () => { expect(headingSlugs).to.contain('section-1'); expect(headingSlugs).to.contain('section-2'); }); - - it('extracts frontmatter to "customFrontmatter" export when configured', async () => { - const customFixture = await loadFixture({ - root: new URL('./fixtures/mdx-custom-frontmatter-name/', import.meta.url), - integrations: [ - mdx({ - frontmatterOptions: { - name: 'customFrontmatter', - }, - }), - ], - }); - await customFixture.build(); - - const { titles } = JSON.parse(await customFixture.readFile('/glob.json')); - expect(titles).to.include('Using YAML frontmatter'); - }); }); |