question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[jest-docblock] Do not extract /* these */ comments

See original GitHub issue

Do 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:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SimenBcommented, May 16, 2018

Seeing as @providesModule is out (#6104), maybe we can fix this?

0reactions
github-actions[bot]commented, Apr 27, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found