-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docgen: Replace fixtures with inline parsed code. (#40428)
Previously in the `docgen` package test suite we relied on developers manually creating a set of files for each test that includes a reference snippet of code, a parsed AST, and an exports listing. These files weren't linked together in any way. In this patch we're removing the manual steps and inlining the code snippets inside each test in the suite. This removes a level of manual work and indirection when maintaining the tests while leaning more on `docgen`'s `engine` component, which itself does the actual parsing.
- Loading branch information
Showing
117 changed files
with
1,328 additions
and
11,005 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
packages/docgen/test/fixtures/default-class-anonymous/code.js
This file was deleted.
Oops, something went wrong.
70 changes: 0 additions & 70 deletions
70
packages/docgen/test/fixtures/default-class-anonymous/exports.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
packages/docgen/test/fixtures/default-class-named/exports.json
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/docgen/test/fixtures/default-function-anonymous/code.js
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
packages/docgen/test/fixtures/default-function-anonymous/exports.json
This file was deleted.
Oops, something went wrong.
127 changes: 0 additions & 127 deletions
127
packages/docgen/test/fixtures/default-function-named/ast.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.