-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(website): rename examples group (#1209)
- Loading branch information
1 parent
4d0b089
commit 0a80885
Showing
92 changed files
with
247 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/examples/55_document-builder/document-builder_arguments.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @vitest-environment node | ||
|
||
// WARNING: | ||
// This test is generated by scripts/generate-example-derivatives/generate.ts | ||
// Do not modify this file directly. | ||
|
||
import { expect, test } from 'vitest' | ||
import { runExample } from '../../../scripts/generate-examples-derivatives/helpers.js' | ||
|
||
test(`document-builder_arguments`, async () => { | ||
const exampleResult = await runExample(`./examples/55_document-builder/document-builder_arguments.ts`) | ||
// Examples should output their data results. | ||
const exampleResultMaybeEncoded = exampleResult | ||
// If ever outputs vary by Node version, you can use this to snapshot by Node version. | ||
// const nodeMajor = process.version.match(/v(\d+)/)?.[1] ?? `unknown` | ||
await expect(exampleResultMaybeEncoded).toMatchFileSnapshot( | ||
`../../../examples/__outputs__/55_document-builder/document-builder_arguments.output.txt`, | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/examples/55_document-builder/document-builder_directive.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @vitest-environment node | ||
|
||
// WARNING: | ||
// This test is generated by scripts/generate-example-derivatives/generate.ts | ||
// Do not modify this file directly. | ||
|
||
import { expect, test } from 'vitest' | ||
import { runExample } from '../../../scripts/generate-examples-derivatives/helpers.js' | ||
|
||
test(`document-builder_directive`, async () => { | ||
const exampleResult = await runExample(`./examples/55_document-builder/document-builder_directive.ts`) | ||
// Examples should output their data results. | ||
const exampleResultMaybeEncoded = exampleResult | ||
// If ever outputs vary by Node version, you can use this to snapshot by Node version. | ||
// const nodeMajor = process.version.match(/v(\d+)/)?.[1] ?? `unknown` | ||
await expect(exampleResultMaybeEncoded).toMatchFileSnapshot( | ||
`../../../examples/__outputs__/55_document-builder/document-builder_directive.output.txt`, | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/examples/55_document-builder/document-builder_interface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @vitest-environment node | ||
|
||
// WARNING: | ||
// This test is generated by scripts/generate-example-derivatives/generate.ts | ||
// Do not modify this file directly. | ||
|
||
import { expect, test } from 'vitest' | ||
import { runExample } from '../../../scripts/generate-examples-derivatives/helpers.js' | ||
|
||
test(`document-builder_interface`, async () => { | ||
const exampleResult = await runExample(`./examples/55_document-builder/document-builder_interface.ts`) | ||
// Examples should output their data results. | ||
const exampleResultMaybeEncoded = exampleResult | ||
// If ever outputs vary by Node version, you can use this to snapshot by Node version. | ||
// const nodeMajor = process.version.match(/v(\d+)/)?.[1] ?? `unknown` | ||
await expect(exampleResultMaybeEncoded).toMatchFileSnapshot( | ||
`../../../examples/__outputs__/55_document-builder/document-builder_interface.output.txt`, | ||
) | ||
}) |
19 changes: 19 additions & 0 deletions
19
tests/examples/55_document-builder/document-builder_root-field.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @vitest-environment node | ||
|
||
// WARNING: | ||
// This test is generated by scripts/generate-example-derivatives/generate.ts | ||
// Do not modify this file directly. | ||
|
||
import { expect, test } from 'vitest' | ||
import { runExample } from '../../../scripts/generate-examples-derivatives/helpers.js' | ||
|
||
test(`document-builder_root-field`, async () => { | ||
const exampleResult = await runExample(`./examples/55_document-builder/document-builder_root-field.ts`) | ||
// Examples should output their data results. | ||
const exampleResultMaybeEncoded = exampleResult | ||
// If ever outputs vary by Node version, you can use this to snapshot by Node version. | ||
// const nodeMajor = process.version.match(/v(\d+)/)?.[1] ?? `unknown` | ||
await expect(exampleResultMaybeEncoded).toMatchFileSnapshot( | ||
`../../../examples/__outputs__/55_document-builder/document-builder_root-field.output.txt`, | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/generated/alias">Alias</a></p> | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/alias">Alias</a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/generated/arguments">Arguments</a></p> | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/arguments">Arguments</a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/generated/batch">Batch</a></p> | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/batch">Batch</a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/generated/directive">Directive</a></p> | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/directive">Directive</a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/alias">Alias</a> <span class="ExampleLinksSeparator"></span> <a href="../../examples/document-builder/arguments">Arguments</a> <span class="ExampleLinksSeparator"></span> <a href="../../examples/document-builder/batch">Batch</a> <span class="ExampleLinksSeparator"></span> <a href="../../examples/document-builder/directive">Directive</a> <span class="ExampleLinksSeparator"></span> <a href="../../examples/document-builder/document">Document</a> <span class="ExampleLinksSeparator"></span> <a href="../../examples/document-builder/interface">Interface</a> <span class="ExampleLinksSeparator"></span> <a href="../../examples/document-builder/root-field">Root Field</a> <span class="ExampleLinksSeparator"></span> <a href="../../examples/document-builder/union">Union</a></p> |
1 change: 1 addition & 0 deletions
1
website/content/_snippets/example-links/document-builder_alias.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/alias">Alias</a></p> |
1 change: 1 addition & 0 deletions
1
website/content/_snippets/example-links/document-builder_arguments.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/arguments">Arguments</a></p> |
1 change: 1 addition & 0 deletions
1
website/content/_snippets/example-links/document-builder_batch.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/batch">Batch</a></p> |
1 change: 1 addition & 0 deletions
1
website/content/_snippets/example-links/document-builder_directive.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/directive">Directive</a></p> |
1 change: 1 addition & 0 deletions
1
website/content/_snippets/example-links/document-builder_document.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/document">Document</a></p> |
1 change: 1 addition & 0 deletions
1
website/content/_snippets/example-links/document-builder_interface.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/document-builder/interface">Interface</a></p> |
Oops, something went wrong.