diff options
author | 2023-01-11 12:51:31 -0500 | |
---|---|---|
committer | 2023-01-11 12:51:31 -0500 | |
commit | 52209ca2ad72a30854947dcb3a90ab4db0ac0a6f (patch) | |
tree | 707b90eee0464eedfa2dbc10d01500c73d6661c7 /packages/markdown/remark/test/plugins.test.js | |
parent | 665a2c2225e42881f5a9550599e8f3fc1deea0b4 (diff) | |
download | astro-52209ca2ad72a30854947dcb3a90ab4db0ac0a6f.tar.gz astro-52209ca2ad72a30854947dcb3a90ab4db0ac0a6f.tar.zst astro-52209ca2ad72a30854947dcb3a90ab4db0ac0a6f.zip |
[Content collections] Remove experimental flag (#5825)
* refactor: remove experimental.cc from core
* chore: remove experimental flag from tests
* fix: mock contentDir in remark tests
* fix: check vfile.path in rel-image-error plugin
* fix: move .astro/ excludes to all test/fixtures
* fix: include test/**/fixtures in ignore
* chore: changeset
Diffstat (limited to 'packages/markdown/remark/test/plugins.test.js')
-rw-r--r-- | packages/markdown/remark/test/plugins.test.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/markdown/remark/test/plugins.test.js b/packages/markdown/remark/test/plugins.test.js index a1abeb2ed..35e5dcaf8 100644 --- a/packages/markdown/remark/test/plugins.test.js +++ b/packages/markdown/remark/test/plugins.test.js @@ -1,4 +1,5 @@ import { renderMarkdown } from '../dist/index.js'; +import { mockRenderMarkdownParams } from './test-utils.js'; import chai from 'chai'; import { fileURLToPath } from 'node:url'; @@ -8,6 +9,7 @@ describe('plugins', () => { it('should be able to get file path when passing fileURL', async () => { let context; await renderMarkdown(`test`, { + ...mockRenderMarkdownParams, fileURL: new URL('virtual.md', import.meta.url), remarkPlugins: [ function () { |