feat(mdx-loader): Remark plugin to report unused MDX / Markdown directives #3620
Annotations
4 errors
packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L49
expect(received).toMatchSnapshot()
Snapshot name: `directives remark plugin default behavior for container directives 2`
- Snapshot - 5
+ Received + 1
- [
- [
- "[WARNING] We found a potential error in your documentation unusedDirective "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md":7:1",
- ],
- ]
+ []
at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:49:36)
|
packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L57
expect(received).toMatchSnapshot()
Snapshot name: `directives remark plugin default behavior for leaf directives 2`
- Snapshot - 5
+ Received + 1
- [
- [
- "[WARNING] We found a potential error in your documentation unusedLeafDirective "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md":1:1",
- ],
- ]
+ []
at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:57:36)
|
packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L65
expect(received).toMatchSnapshot()
Snapshot name: `directives remark plugin default behavior for text directives 2`
- Snapshot - 5
+ Received + 1
- [
- [
- "[WARNING] We found a potential error in your documentation textDirective2 "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md":7:7",
- ],
- ]
+ []
at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:65:36)
|
|
The logs for this run have expired and are no longer available.
Loading