[jest-docblock] Do not extract /* these */ comments
See original GitHub issueDo you want to request a feature or report a bug?
Bug
What is the expected behavior?
expect(
require('jest-docblock').extract(`
/* a */
/** b */
`)
).toEqual(`/** b */`)
What is the current behavior?
It returns the non-docblock /* a */
.
Fixing this could be considered a breaking change, so perhaps adding an option {strict:true}
is preferable?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
[jest-haste-map] Does not parse docblock starting with /* #2005
Successfully merging a pull request may close this issue. haste-map Allow directives in non docblock comments edvinerikson/jest. 1 participant.
Read more >jest-docblock | Yarn - Package Manager
jest -docblock is a package that can extract and parse a specially-formatted comment called a "docblock" at the top of a file.
Read more >node_modules/jest-docblock · imgOperation · Thomas Morin ...
jest -docblock is a package that can extract and parse a specially-formatted comment called a "docblock" at the top of a file. A...
Read more >node_modules/jest-docblock · master · Shanshan Qu ...
jest -docblock is a package that can extract and parse a specially-formatted comment called a "docblock" at the top of a file. A...
Read more >Configuring Jest
The configuration file should simply export an object: JavaScript; TypeScript ... Node.js core modules, like fs , are not mocked by default.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seeing as
@providesModule
is out (#6104), maybe we can fix this?This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.