Files
firefox/devtools/client/memory/store.js
T
Nicolas Chevobbe 2baeab543d Bug 1582697 - Don't add the task middleware by default in create-store. r=davidwalsh.
The disableTask options is renamed to enableTaskMiddleware,
which defaults to false.

This caused failure in the dom mutation breakpoint test, because
we weren't waiting until the call to the server to remove the
breakpoints were done.
It wasn't an issue before because this was handle by the task
middleware, which catch rejections.
We fix this by only dispatching the action when the breakpoints are
indeed removed. We also tweak to waitForAllElements helper to be
able to wait for a specific count of element (it used to resolve
when there was at least the specified count, which is not ideal
when trying to assert removal of an element).

Differential Revision: https://phabricator.services.mozilla.com/D47584
2019-09-30 15:57:46 +00:00

16 lines
478 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const createStore = require("../shared/redux/create-store");
const reducers = require("./reducers");
module.exports = () =>
createStore(reducers, {
enableTaskMiddleware: true,
// Uncomment this for logging in tests.
// shouldLog: true,
});