Skip to content

feat(core): make broken link checker detect broken anchors - add onBrokenAnchors config #3726

feat(core): make broken link checker detect broken anchors - add onBrokenAnchors config

feat(core): make broken link checker detect broken anchors - add onBrokenAnchors config #3726

Triggered via pull request November 21, 2023 13:29
Status Failure
Total duration 6m 45s
Artifacts

tests-windows.yml

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

Annotations

14 errors
getDocusaurusAliases › returns appropriate webpack aliases: packages/docusaurus/src/webpack/aliases/__tests__/index.test.ts#L186
expect(received).resolves.toMatchSnapshot() Snapshot name: `getDocusaurusAliases returns appropriate webpack aliases 1` - Snapshot - 0 + Received + 1 @@ -10,10 +10,11 @@ "@docusaurus/Translate": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/Translate.tsx", "@docusaurus/constants": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/constants.ts", "@docusaurus/isInternalUrl": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/isInternalUrl.ts", "@docusaurus/renderRoutes": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/renderRoutes.ts", "@docusaurus/router": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/router.ts", + "@docusaurus/useAnchor": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/useAnchor.ts", "@docusaurus/useBaseUrl": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/useBaseUrl.ts", "@docusaurus/useDocusaurusContext": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/useDocusaurusContext.ts", "@docusaurus/useGlobalData": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/useGlobalData.ts", "@docusaurus/useIsBrowser": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/useIsBrowser.ts", "@docusaurus/useIsomorphicLayoutEffect": "<PROJECT_ROOT>/packages/docusaurus/src/client/exports/useIsomorphicLayoutEffect.tsx", at Object.toMatchSnapshot (node_modules/expect/build/index.js:174:22) at Object.toMatchSnapshot (packages/docusaurus/src/webpack/aliases/__tests__/index.test.ts:186:52)
loadSiteConfig › website with valid siteConfig: packages/docusaurus/src/server/__tests__/config.test.ts#L18
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with valid siteConfig 1` - Snapshot - 0 + Received + 1 @@ -25,10 +25,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "organizationName": "endiliey", "plugins": [ at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:18:20)
loadSiteConfig › website with ts + js config: packages/docusaurus/src/server/__tests__/config.test.ts#L30
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with ts + js config 1` - Snapshot - 0 + Received + 1 @@ -22,10 +22,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "plugins": [], "presets": [], at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:30:20)
loadSiteConfig › website with .cjs siteConfig: packages/docusaurus/src/server/__tests__/config.test.ts#L38
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with .cjs siteConfig 1` - Snapshot - 0 + Received + 1 @@ -22,10 +22,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "plugins": [], "presets": [], at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:38:20)
loadSiteConfig › website with valid config creator function: packages/docusaurus/src/server/__tests__/config.test.ts#L47
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with valid config creator function 1` - Snapshot - 0 + Received + 1 @@ -22,10 +22,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "organizationName": "endiliey", "plugins": [], at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:47:20)
loadSiteConfig › website with valid async config: packages/docusaurus/src/server/__tests__/config.test.ts#L56
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with valid async config 1` - Snapshot - 0 + Received + 1 @@ -22,10 +22,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "organizationName": "endiliey", "plugins": [], at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:56:20)
loadSiteConfig › website with valid async config creator function: packages/docusaurus/src/server/__tests__/config.test.ts#L65
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with valid async config creator function 1` - Snapshot - 0 + Received + 1 @@ -22,10 +22,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "organizationName": "endiliey", "plugins": [], at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:65:20)
loadSiteConfig › website with valid JS CJS config: packages/docusaurus/src/server/__tests__/config.test.ts#L74
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with valid JS CJS config 1` - Snapshot - 0 + Received + 1 @@ -22,10 +22,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "plugins": [], "presets": [], at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:74:20)
loadSiteConfig › website with valid JS ESM config: packages/docusaurus/src/server/__tests__/config.test.ts#L83
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with valid JS ESM config 1` - Snapshot - 0 + Received + 1 @@ -22,10 +22,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "plugins": [], "presets": [], at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:83:20)
loadSiteConfig › website with valid TypeScript CJS config: packages/docusaurus/src/server/__tests__/config.test.ts#L92
expect(received).toMatchSnapshot() Snapshot name: `loadSiteConfig website with valid TypeScript CJS config 1` - Snapshot - 0 + Received + 1 @@ -22,10 +22,11 @@ }, "mermaid": false, "preprocessor": undefined, }, "noIndex": false, + "onBrokenAnchors": "warn", "onBrokenLinks": "throw", "onBrokenMarkdownLinks": "warn", "onDuplicateRoutes": "warn", "plugins": [], "presets": [], at Object.toMatchSnapshot (packages/docusaurus/src/server/__tests__/config.test.ts:92:20)
Windows Tests (20)
The job was canceled because "_18_0" failed.
Windows Tests (20)
The operation was canceled.
Windows Tests (18)
The job was canceled because "_18_0" failed.
Windows Tests (18)
The operation was canceled.