Codesandbox-client: MutationObserver is not working in jest

Created on 1 Nov 2020  路  1Comment  路  Source: codesandbox/codesandbox-client

馃悰 bug report

Preflight Checklist

  • [x] I have read the
    Contributing Guidelines
    for this project.
  • [x] I agree to follow the
    Code of Conduct
    that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

I have run test to try to check that MutationObserver is worked in My React Component. But test was failed and logs were outputted like the following.

Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.

How has this issue affected you? What are you trying to accomplish?

To Reproduce

  1. run test

Link to sandbox: link (optional)

Your Environment

| Software | Name/Version |
| ---------------- | ------------ |
| 小odesandbox |
| Browser | Chrome v86.0.4240.111
| Operating System | Mac

Most helpful comment

Thanks for your report. I can reproduce your issue on my end. We'll look into it to see what's wrong and will update here!

>All comments

Thanks for your report. I can reproduce your issue on my end. We'll look into it to see what's wrong and will update here!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanpcmcquen picture ryanpcmcquen  路  23Comments

bcbrian picture bcbrian  路  33Comments

Nico-L picture Nico-L  路  21Comments

loilo picture loilo  路  22Comments

CompuIves picture CompuIves  路  26Comments