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

error with oniguruma in watch mode #3732

Closed
kentor opened this issue Jun 3, 2017 · 4 comments
Closed

error with oniguruma in watch mode #3732

kentor opened this issue Jun 3, 2017 · 4 comments

Comments

@kentor
Copy link
Contributor

kentor commented Jun 3, 2017

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Getting an error with a library that depends on oniguruma in jest watch mode.

Repro steps:

Get these files: https://github.com/kentor/throwaway/tree/master/jest-oniguruma
yarn
npm start to start jest watcher
let it run once.. it should pass
press a, to rerun. it should fail with

 FAIL  ./test.js
  ● Test suite failed to run

    TypeError: Cannot redefine property: length
        at Function.defineProperty (native)

      at Object.<anonymous> (node_modules/oniguruma/src/oniguruma.js:97:8)
      at Object.<anonymous> (test.js:1:108)
      at process._tickCallback (internal/process/next_tick.js:109:7)

What is the expected behavior?
Not to fail

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest 20, no config. Tested on node 6 and 8. Yarn 0.24.5. Mac 10.12.5

@thymikee
Copy link
Collaborator

thymikee commented Jun 3, 2017

Does the lib have native bindings? May be related to #3552

@kentor
Copy link
Contributor Author

kentor commented Jun 3, 2017

Yes I believe oniguruma has native bindings.

@thymikee
Copy link
Collaborator

thymikee commented Jun 3, 2017

I'll close it then. If you're able to get some more info, please share in #3552. You can look at related issues to get some extra information around the topic.

@thymikee thymikee closed this as completed Jun 3, 2017
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants