Jest: @jest/console 25.2.4 build output ts3.4 contains error

Created on 1 Apr 2020  路  4Comments  路  Source: facebook/jest

馃悰 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
Bug Confirmed

All 4 comments

This has to be a dirty working directory when I published. Bah. Will fix

I am also seeing this with version 25.2.4

I'll publish a fixed package today. You can upgrade to [email protected] to unblock in the meantime

Fixed in 25.2.6

Was this page helpful?
0 / 5 - 0 ratings