Flow-typed: [jest_v20.x.x] Globals missing: require.requireActual require.requireMock

Created on 12 Jul 2017  路  4Comments  路  Source: flow-typed/flow-typed

require.requireActual("...")
        ^^^^^^^^^^^^^ property `requireActual`. Property not found in
require.requireActual("...")
^^^^^^^ object type

https://facebook.github.io/jest/docs/api.html#requirerequireactualmodulename

incomplete

Most helpful comment

@danrot and anyone else looking at this, use jest.requireActual

All 4 comments

I'm experiencing the same problem as @Palisand

Added in jest_v21.x.x

I have just updated to the latest version using flow-typed update [email protected], but I am still getting the same message... It is also not clear to me where require.requireActual is defined, I can just find requireActual alone 馃

@danrot and anyone else looking at this, use jest.requireActual

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NotTooReact89 picture NotTooReact89  路  4Comments

oriSomething picture oriSomething  路  4Comments

callumlocke picture callumlocke  路  4Comments

DullReferenceException picture DullReferenceException  路  4Comments

pmrcunha picture pmrcunha  路  3Comments