Skip to content

feat(mdx-loader): Remark plugin to report unused MDX / Markdown directives #3978

feat(mdx-loader): Remark plugin to report unused MDX / Markdown directives

feat(mdx-loader): Remark plugin to report unused MDX / Markdown directives #3978

Triggered via pull request October 13, 2023 17:05
Status Failure
Total duration 4m 24s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

tests.yml

on: pull_request
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

14 errors
directives remark plugin - client compiler › default behavior for container directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L48
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for container directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md" - 7:1 :::unusedDirective Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:48:36)
directives remark plugin - client compiler › default behavior for leaf directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L55
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for leaf directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md" - 1:1 ::unusedLeafDirective Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:55:36)
directives remark plugin - client compiler › default behavior for text directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L62
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for text directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md" - 7:7 :textDirective2 Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:62:36)
Tests (18.0)
Process completed with exit code 1.
Tests (18)
The job was canceled because "_18_0" failed.
directives remark plugin - client compiler › default behavior for container directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L48
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for container directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md" - 7:1 :::unusedDirective Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:48:36)
directives remark plugin - client compiler › default behavior for leaf directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L55
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for leaf directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md" - 1:1 ::unusedLeafDirective Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:55:36)
directives remark plugin - client compiler › default behavior for text directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L62
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for text directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md" - 7:7 :textDirective2 Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:62:36)
Tests (18)
The operation was canceled.
Tests (20)
The job was canceled because "_18_0" failed.
directives remark plugin - client compiler › default behavior for container directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L48
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for container directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md" - 7:1 :::unusedDirective Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:48:36)
directives remark plugin - client compiler › default behavior for leaf directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L55
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for leaf directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md" - 1:1 ::unusedLeafDirective Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:55:36)
directives remark plugin - client compiler › default behavior for text directives: packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts#L62
expect(received).toMatchSnapshot() Snapshot name: `directives remark plugin - client compiler default behavior for text directives 2` - Snapshot - 1 + Received + 1 [ [ - "[WARNING] Docusaurus found 1 unused Markdown directives in file packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md + "[WARNING] Docusaurus found 1 unused Markdown directives in file "packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md" - 7:7 :textDirective2 Your content might render in an unexpected way. Visit https://github.com/facebook/docusaurus/pull/9394 to find out why and how to fix it.", ], ] at Object.toMatchSnapshot (packages/docusaurus-mdx-loader/src/remark/unusedDirectives/__tests__/index.test.ts:62:36)
Tests (20)
The operation was canceled.