Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"imports": {
"~docsCatalog": "./src/docs.json",
"#toolsHost": "./dist/server.toolsHost.js",
"#workerEntry": "./dist/server.workerEntry.js"
"#workerEntry": "./dist/server.workerEntry.js",
"#collectionPatternFlyApi": "./dist/collection.patternFlyApi.js"
},
"exports": {
".": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`collectionCallback should match snapshot for collection result 1`] = `
{
"records": [
{
"data": {
"card": {
"category": "css",
"description": "Card css content",
"displayName": "Card",
"id": "api::v1::components::card::css::0",
"path": "https://main.patternfly-org.pages.dev/api/v1/components/Card/css",
"pathSlug": "card",
"section": "components",
"source": "api",
"version": "v1",
},
},
"id": "api::v1::components::card::css::0",
"sourceId": "https://main.patternfly-org.pages.dev/api/v1/components/Card/css",
"sourceType": "api",
},
],
}
`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`patternFlyDocsCollection should match snapshot for collection result 1`] = `
exports[`collectionCallback should match snapshot for collection result 1`] = `
{
"isFallback": false,
"records": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`patternFlySchemasCollection should match snapshot for schema collection result 1`] = `
exports[`collectionCallback should match snapshot for schema collection result 1`] = `
{
"records": [
{
Expand Down
20 changes: 20 additions & 0 deletions src/__tests__/__snapshots__/options.defaults.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ exports[`options defaults should return specific properties: defaults 1`] = `
"nodeVersion": 22,
"nodeVersionPreferred": 22,
"patternflyOptions": {
"api": {
"base": "https://main.patternfly-org.pages.dev/api",
"componentPaths": [
"props",
"css",
],
"crawlCancelMs": 180000,
"crawlIntervalMs": 43200000,
"enabled": false,
"versions": "https://main.patternfly-org.pages.dev/api/versions",
},
"availableResourceVersions": [
"6.0.0",
],
Expand Down Expand Up @@ -96,6 +107,12 @@ exports[`options defaults should return specific properties: defaults 1`] = `
"cacheLimit": 100,
"expire": 180000,
},
"high": {
"cacheLimit": 50,
},
"medium": {
"cacheLimit": 25,
},
"readFile": {
"cacheErrors": false,
"cacheLimit": 50,
Expand Down Expand Up @@ -139,7 +156,10 @@ exports[`options defaults should return specific properties: defaults 1`] = `
],
"urls": [
"https://patternfly.org",
"https://www.patternfly.org",
"https://github.com/patternfly",
"https://www.github.com/patternfly",
"https://main.patternfly-org.pages.dev",
"https://raw.githubusercontent.com/patternfly",
],
},
Expand Down
Loading
Loading