Jest: Bug with jest-haste-map

Created on 20 Oct 2016  路  6Comments  路  Source: facebook/jest

require('jest-haste-map').fastpath.replace();
^

TypeError: Cannot read property 'replace' of undefined

This happens when using jest 16.0.1 which installs jest-haste-map 16.0.2.
You should consider using fix versions or npm shrinkwrap.

Most helpful comment

Have seen same bug, please update https://www.npmjs.com/package/jest-cli to v16.0.2.

All 6 comments

Also started to encounter this on our CI server this morning.

Have seen same bug, please update https://www.npmjs.com/package/jest-cli to v16.0.2.

Ah dammit. If you update Jest-cli and all Jest deps to 16.0.2 it should work again.

On Thu, Oct 20, 2016 at 6:27 PM +0900, "Andy Tyurin" <[email protected]notifications@github.com> wrote:

Have seen same bug, please update https://www.npmjs.com/package/jest-clihttps://urldefense.proofpoint.com/v2/url?u=https-3A__www.npmjs.com_package_jest-2Dcli&d=DQMCaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=aFhQMFmdCAmrM__WP0c73w&m=8FdrA_-x354wSAAHM0mhlIw6lk97iVMtCil3NuctTfI&s=FPbevu0AYBUL99BakaCY6dlsDT1_KUhE2cYgkCdJHsc&e= to v16.0.2.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/facebook/jest/issues/1959#issuecomment-255055531, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAA0KG_q49u7SMxJj5G4CqfbFLdz0anIks5q1zPOgaJpZM4Kb4qG.

It seems to me that that change should have been released as a major change to jest-haste-map instead of a patch-level change?

Upgrading jest and jest-cli to 16.0.2 wroked for us

Worked for me too 馃帀

Was this page helpful?
0 / 5 - 0 ratings