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

ExperimentalWarning: queueMicrotask() is experimental. #1985

Closed
brunorozendo opened this issue Feb 28, 2019 · 2 comments
Closed

ExperimentalWarning: queueMicrotask() is experimental. #1985

brunorozendo opened this issue Feb 28, 2019 · 2 comments

Comments

@brunorozendo
Copy link

Describe the bug
A warning is throwed by just import sinon

(node:15479) ExperimentalWarning: queueMicrotask() is experimental.
  <Root />
    ✓ calls componentDidMount

To Reproduce
Just import sinon

import sinon from 'sinon';

or

const sinon = require('sinon');

Expected behavior
No warning

Context (please complete the following information):

  • Library version: 7.2.4 and 7.2.5
  • Environment:
$ node -v      
v11.10.0
$ npm -v 
6.8.0
$ uname -a
Linux fedora 4.20.11-200.fc29.x86_64 #1 SMP Wed Feb 20 15:56:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@fatso83
Copy link
Contributor

fatso83 commented Feb 28, 2019

This is sinonjs/fake-timers#232. Since this isn't really a functional bug impacting anything, I don't see why we should duplicate the issue here. Follow the lolex issue for updates (it has seen work by @shdq).

@fatso83 fatso83 closed this as completed Feb 28, 2019
@fatso83
Copy link
Contributor

fatso83 commented Apr 17, 2019

With lolex 4 out and included in the latest Sinon, this warning should not show itself, unless explicitly triggered by using queueMicrotask()

fatso83 added a commit that referenced this issue Apr 17, 2019
Removes the queueMicrotask() warning if you don't use it.

refs #1985
franck-romano pushed a commit to franck-romano/sinon that referenced this issue Oct 1, 2019
Removes the queueMicrotask() warning if you don't use it.

refs sinonjs#1985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants