Skip to content

Investigate Node 10.5.0 test failures #6529

@SimenB

Description

@SimenB

The spec packages/jest-runtime/src/__tests__/script_transformer.test.js fails on node 10.5.0, while it passes on node 10.4.1 (and node 6, 8 & 9).

Skipping a single test doesn't matter, it'll fail the top one either way.

  ● ScriptTransformer › does not transform Node core modules

    TypeError: Cannot read property 'prototype' of undefined

      at patch (node_modules/graceful-fs/graceful-fs.js:166:54)

  ● ScriptTransformer › does not transform Node core modules

    TypeError: ScriptTransformer is not a constructor

      at Object.it (packages/jest-runtime/src/__tests__/script_transformer.test.js:227:31)

I'm opening the issue here instead of node/graceful-fs since we do a lot of mocking fs in that test.

https://github.com/facebook/jest/blob/404da0f53bd9c6204823e4ce96c1b6742e7470e3/packages/jest-runtime/src/__tests__/script_transformer.test.js

@thymikee @rickhanlonii ideas? I haven't dug into it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions