Skip to content

ReferenceError: regeneratorRuntime is not defined if use async test #11

Description

@pontakornth

I think I setup something wrong. I created the project using Vite and using this template.

Steps to reproduce

  1. Set up an async test
  2. Try to run test with jest command

Expected Behavior

Tests should run fine.

Actual Behavior

This error. ReferenceError: regeneratorRuntime

Note

I tried to use babel and add configuration file and tried to install regenerator-runtime. They do nothing.

Edit 1: I need to import regenerator-runtime manually. Actually, I expect that it should work without manual import.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions