Skip to content

Commit

Permalink
simulate docs error
Browse files Browse the repository at this point in the history
  • Loading branch information
LeahMarieBush committed Jan 15, 2025
1 parent 52579df commit cfdcbc5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/sitemap/docs-content-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { makeSitemapField } from './helpers'

export async function allDocsFields(config: typeof __config) {
throw new Error('docs error')

Check failure on line 9 in src/lib/sitemap/docs-content-fields.ts

View workflow job for this annotation

GitHub Actions / Run Tests 🧪

src/lib/__tests__/docs-content-fields.test.ts > allDocsFields > should fetch and return all docs fields from content API when unified-docs-sandbox is not set

Error: docs error ❯ Module.allDocsFields src/lib/sitemap/docs-content-fields.ts:9:8 ❯ src/lib/__tests__/docs-content-fields.test.ts:20:24

Check failure on line 9 in src/lib/sitemap/docs-content-fields.ts

View workflow job for this annotation

GitHub Actions / Run Tests 🧪

src/lib/__tests__/docs-content-fields.test.ts > allDocsFields > should fetch and return all docs fields from both content API and UDR when unified-docs-sandbox is set

Error: docs error ❯ Module.allDocsFields src/lib/sitemap/docs-content-fields.ts:9:8 ❯ src/lib/__tests__/docs-content-fields.test.ts:62:24
// If there are docs that have been migrated to the unified docs repo, get the paths for those docs
// and merge them with the paths for the docs that haven't been migrated from the content API
if (
Expand Down
1 change: 0 additions & 1 deletion src/lib/sitemap/tutorials-content-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ async function getCollectionPaths() {
}

export async function allTutorialsFields(config: typeof __config) {
throw new Error('tutorials error')
const landingSlugs = getTutorialLandingPaths()
const collectionSlugs = await getCollectionPaths()
const tutorialSlugs = Object.values(tutorialMap)
Expand Down

0 comments on commit cfdcbc5

Please sign in to comment.