From 06f68b6ee654b120ec69e046c2091c699f15a2e0 Mon Sep 17 00:00:00 2001 From: Eden Date: Tue, 14 Jan 2025 10:51:35 -0500 Subject: [PATCH 1/2] Update snapshots. --- .../src/__test__/outputs/bland/fern/docs.yml | 8 +++-- .../__test__/outputs/layerfi/fern/docs.yml | 7 +++-- .../src/__test__/outputs/zep/fern/docs.yml | 11 ++++--- .../generators-list.test.ts.snap | 10 ++----- .../init/__snapshots__/init.test.ts.snap | 6 ++-- .../__snapshots__/jsonschema.test.ts.snap | 29 ------------------- 6 files changed, 22 insertions(+), 49 deletions(-) delete mode 100644 packages/cli/ete-tests/src/tests/jsonschema/__snapshots__/jsonschema.test.ts.snap diff --git a/packages/cli/docs-importers/mintlify/src/__test__/outputs/bland/fern/docs.yml b/packages/cli/docs-importers/mintlify/src/__test__/outputs/bland/fern/docs.yml index 9c1a341533b..f1db37ae407 100644 --- a/packages/cli/docs-importers/mintlify/src/__test__/outputs/bland/fern/docs.yml +++ b/packages/cli/docs-importers/mintlify/src/__test__/outputs/bland/fern/docs.yml @@ -5,19 +5,21 @@ favicon: logo.png logo: light: logo/light.svg dark: logo/dark.svg + href: null height: 28 colors: - accentPrimary: + accent-primary: dark: '#0b0a18' light: '#847AF9' background: dark: '#0A141B' + light: null tabs: api-v1: slug: api-v1 - displayName: V1 API Reference + display-name: V1 API Reference documentation: - displayName: Documentation + display-name: Documentation slug: documentation navigation: - tab: api-v1 diff --git a/packages/cli/docs-importers/mintlify/src/__test__/outputs/layerfi/fern/docs.yml b/packages/cli/docs-importers/mintlify/src/__test__/outputs/layerfi/fern/docs.yml index fb67b2169d9..0e46c95fa1c 100644 --- a/packages/cli/docs-importers/mintlify/src/__test__/outputs/layerfi/fern/docs.yml +++ b/packages/cli/docs-importers/mintlify/src/__test__/outputs/layerfi/fern/docs.yml @@ -8,17 +8,18 @@ logo: href: http://layerfi.com height: 28 colors: - accentPrimary: + accent-primary: dark: '#0c48e5' light: '#7e9be5' background: dark: '#090014' + light: null tabs: api-reference: slug: api-reference - displayName: API Reference + display-name: API Reference documentation: - displayName: Documentation + display-name: Documentation slug: documentation navigation: - tab: api-reference diff --git a/packages/cli/docs-importers/mintlify/src/__test__/outputs/zep/fern/docs.yml b/packages/cli/docs-importers/mintlify/src/__test__/outputs/zep/fern/docs.yml index e189b23d250..b6408cc4369 100644 --- a/packages/cli/docs-importers/mintlify/src/__test__/outputs/zep/fern/docs.yml +++ b/packages/cli/docs-importers/mintlify/src/__test__/outputs/zep/fern/docs.yml @@ -5,18 +5,21 @@ favicon: logo/favicon.png logo: light: logo/zep-name-logo-gradient.svg dark: logo/zep-name-logo-pink.svg + href: null height: 28 colors: - accentPrimary: + accent-primary: dark: '#D5479D' light: '#D5479D' - background: {} + background: + dark: null + light: null tabs: api-reference: slug: api-reference - displayName: API Reference + display-name: API Reference documentation: - displayName: Documentation + display-name: Documentation slug: documentation navigation: - tab: api-reference diff --git a/packages/cli/ete-tests/src/tests/generators-list/__snapshots__/generators-list.test.ts.snap b/packages/cli/ete-tests/src/tests/generators-list/__snapshots__/generators-list.test.ts.snap index 7e8448e3275..cb7bb0b4f85 100644 --- a/packages/cli/ete-tests/src/tests/generators-list/__snapshots__/generators-list.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/generators-list/__snapshots__/generators-list.test.ts.snap @@ -1,18 +1,12 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`fern generator list > fern generator list 1`] = ` +exports[`fern generator list > fern generator list with exclude 1`] = ` "FERN_DEFAULT: local: - fernapi/fern-typescript-node-sdk" `; -exports[`fern generator list > fern generator list with exclude 1`] = ` -"FERN_DEFAULT: - local: []" -`; - exports[`fern generator list > fern generator list with include 1`] = ` "FERN_DEFAULT: - local: - - fernapi/fern-typescript-node-sdk" + local: []" `; diff --git a/packages/cli/ete-tests/src/tests/init/__snapshots__/init.test.ts.snap b/packages/cli/ete-tests/src/tests/init/__snapshots__/init.test.ts.snap index 1d90e588349..a77c837d28a 100644 --- a/packages/cli/ete-tests/src/tests/init/__snapshots__/init.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/init/__snapshots__/init.test.ts.snap @@ -140,10 +140,12 @@ logo: dark: logo.png height: 28 colors: - accentPrimary: + accent-primary: dark: '#0050B4' light: '#4D9CFF' - background: {} + background: + dark: null + light: null navigation: [] ", "name": "docs.yml", diff --git a/packages/cli/ete-tests/src/tests/jsonschema/__snapshots__/jsonschema.test.ts.snap b/packages/cli/ete-tests/src/tests/jsonschema/__snapshots__/jsonschema.test.ts.snap deleted file mode 100644 index d8e8bdaa3e1..00000000000 --- a/packages/cli/ete-tests/src/tests/jsonschema/__snapshots__/jsonschema.test.ts.snap +++ /dev/null @@ -1,29 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`jsonschema > works with latest version 1`] = ` -{ - "additionalProperties": false, - "definitions": { - "imdb.MovieId": { - "type": "string", - }, - }, - "properties": { - "id": { - "$ref": "#/definitions/imdb.MovieId", - }, - "rating": { - "type": "number", - }, - "title": { - "type": "string", - }, - }, - "required": [ - "id", - "title", - "rating", - ], - "type": "object", -} -`; From d8a38a96567811db51c14a37c2671eae78e56840 Mon Sep 17 00:00:00 2001 From: Eden Date: Tue, 14 Jan 2025 11:07:13 -0500 Subject: [PATCH 2/2] us --- .../__snapshots__/generators-list.test.ts.snap | 10 ++++++++-- pnpm-lock.yaml | 10 +++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/cli/ete-tests/src/tests/generators-list/__snapshots__/generators-list.test.ts.snap b/packages/cli/ete-tests/src/tests/generators-list/__snapshots__/generators-list.test.ts.snap index cb7bb0b4f85..7e8448e3275 100644 --- a/packages/cli/ete-tests/src/tests/generators-list/__snapshots__/generators-list.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/generators-list/__snapshots__/generators-list.test.ts.snap @@ -1,12 +1,18 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`fern generator list > fern generator list with exclude 1`] = ` +exports[`fern generator list > fern generator list 1`] = ` "FERN_DEFAULT: local: - fernapi/fern-typescript-node-sdk" `; -exports[`fern generator list > fern generator list with include 1`] = ` +exports[`fern generator list > fern generator list with exclude 1`] = ` "FERN_DEFAULT: local: []" `; + +exports[`fern generator list > fern generator list with include 1`] = ` +"FERN_DEFAULT: + local: + - fernapi/fern-typescript-node-sdk" +`; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 031313bced9..c6d4fdc501c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -99,8 +99,8 @@ importers: specifier: ^5.1.1 version: 5.1.1 fern-api: - specifier: latest - version: 0.47.1 + specifier: ^0.48.1 + version: 0.48.1 husky: specifier: ^9.1.7 version: 9.1.7 @@ -11117,8 +11117,8 @@ packages: picomatch: optional: true - fern-api@0.47.1: - resolution: {integrity: sha512-BEx4PZCZTrNL6SOVq6QjfCvfVvalwj27Y4GfCn8Z4hBWWrup14/2Ezi+KZKF7NPrOlLd1v1KulRl+DYRH7FfDg==} + fern-api@0.48.1: + resolution: {integrity: sha512-8801SzJS8IOKrIZAotUg8FF4i4he4/lfHWqMgj221FphEYgvUj8Q6kzRk+NILROnn/DAVgo/W4VcGZMN4KrX5g==} hasBin: true file-entry-cache@6.0.1: @@ -18614,7 +18614,7 @@ snapshots: optionalDependencies: picomatch: 4.0.2 - fern-api@0.47.1: {} + fern-api@0.48.1: {} file-entry-cache@6.0.1: dependencies: