Skip to content

https://jestjs.io/docs/en/mock-functions.html does not document ES6 imports. #10021

Closed
@alexanderkjeldaas

Description

@alexanderkjeldaas

There is no information on how to submit documentation bugs, so I assume it is classified as a bug.

🐛 Bug Report

The "mocking functions" page at https://jestjs.io/docs/en/mock-functions.html

does not document an example using ES6 imports like this:

import { foo } from 'bar';

To Reproduce

Goto https://jestjs.io/docs/en/mock-functions.html

Expected behavior

Documentation on how to mock a function using ES6 import syntax.

Link to repl or repo (highly encouraged)

envinfo


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