feat(mdx-loader): Remark plugin to report unused MDX / Markdown directives #3620
Annotations
8 errors
directives remark plugin › default behavior for container directives:
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)
|
directives remark plugin › default behavior for leaf directives:
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)
|
directives remark plugin › default behavior for text directives:
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)
|
Windows Tests (18.0)
Process completed with exit code 1.
|
Windows Tests (18)
The job was canceled because "_18_0" failed.
|
Windows Tests (18)
The operation was canceled.
|
Windows Tests (20)
The job was canceled because "_18_0" failed.
|
Windows Tests (20)
The operation was canceled.
|