Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t get tests happy with generator functions #1

Open
RoyalIcing opened this issue Feb 20, 2021 · 0 comments · May be fixed by #4
Open

Can’t get tests happy with generator functions #1

RoyalIcing opened this issue Feb 20, 2021 · 0 comments · May be fixed by #4
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@RoyalIcing
Copy link
Owner

Running tests via npm t hits a regeneratorRuntime is not defined error. Not sure if we need to change how node_modules are processed or somehow tell Babel to just keep the generator functions as-is.

 FAIL  src/index.test.ts
  ● Test suite failed to run

    ReferenceError: regeneratorRuntime is not defined

    > 1 | import { has, optional, parse as parseWith, ParseGenerator, ParseYieldable } from 'parcook';
        | ^
      2 | 
      3 | const whitespaceOptional = /^\s*/;
      4 | 

      at Object.<anonymous> (node_modules/parcook/src/index.ts:141:18)
      at Object.<anonymous> (src/index.ts:1:1)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.705 s
Ran all test suites.
@RoyalIcing RoyalIcing added bug Something isn't working help wanted Extra attention is needed labels Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
1 participant