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/console 25.2.4 build output ts3.4 contains error

See original GitHub issue

🐛 Bug Report

@jest/console 25.2.4 build output contains an error

To Reproduce

Install jest in a npm project. Open node_modules\@jest\console\build\ts3.4\CustomConsole.d.ts look at line 22: assert(value: unknown, message?: string | Error): asserts value;

It produces:

ERROR in node_modules/@jest/console/build/ts3.4/CustomConsole.d.ts:22:61 - error TS1144: '{' or ';' expected.

22   assert(value: unknown, message?: string | Error): asserts value;

Expected behavior

Does not fail with compilation error.

envinfo

  System:
    OS: Windows 10 10.0.18363
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
  Binaries:
    Node: 10.15.3 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.15.2 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    jest: ^25.2.4 => 25.2.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
SimenBcommented, Apr 2, 2020

Fixed in 25.2.6

1reaction
SimenBcommented, Apr 2, 2020

I’ll publish a fixed package today. You can upgrade to TS@3.8 to unblock in the meantime

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I test a jest console.log - javascript - Stack Overflow
If you want to check that console.log received the right parameter (the one that you passed in) you should check mock of your...
Read more >
Jest/CHANGELOG and Jest Releases (Page 3) | LibHunt
25.2.5 was published without changes from 25.2.4 - 25.2.6 includes all changes ... [jest-message-util] Check for common errors when using the wrong test ......
Read more >
Ignitus-Client-Side-Development - Projects - FOSSA
Generate errors that contain a code frame that point to source locations. Licenses: MIT ... Syntax highlight JavaScript strings for output in terminals....
Read more >
Source - GitHub
27.0.6 ### Fixes - `[*]` Publish all modules to include the build change in ... 25.2.4 ### Features - `[jest-message-util]` Check for common...
Read more >
https://docs.cloudera.com/documentation/other/shar...
Where the Third-Party Software contains dual or multiple licensing options, ... You must cause the Source Code for any Derivative Works that You...
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