Skip to content

Commit

Permalink
ete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abarrell committed Aug 6, 2024
1 parent c18735b commit 3a170d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`validate docs 1`] = `
"Failed to parse file: fern/docs.yml
- Expected object. Received undefined."
"Misconfigured fern directory: please see the docs at https://buildwithfern.com/learn/api-definition/introduction/what-is-the-fern-folder
[docs]: ✓ All checks passed"
`;

exports[`validate no-api 1`] = `"[docs]: ✓ All checks passed"`;
exports[`validate no-api 1`] = `
"[docs]:✓ All checks passed
[api]: Missing file: api.yml"
`;

exports[`validate no-generator 1`] = `"Misconfigured fern directory: please see the docs at https://buildwithfern.com/learn/api-definition/introduction/what-is-the-fern-folder"`;

exports[`validate simple 1`] = `""`;
exports[`validate simple 1`] = `
"[api]: Found 2 errors and 0 warnings. Run fern check --warnings to print out the warnings.
[api]: api.yml -> error-discrimination
error-discrimination is required because this API has declared errors.
[api]: other.yml -> types -> MyType
Type MissingType is not defined."
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
instances:
- url: ferndevtest.docs.dev.buildwithfern.com

0 comments on commit 3a170d3

Please sign in to comment.