Consider allowing usage outside describe()s to set up base state
JoshuaKGoldberg opened this issue · 0 comments
JoshuaKGoldberg commented
If you want the same state to be set in all unit tests in a file, this is how you do it now:
describe('...', () => {
beforeEach(() => {
mockReactRedux().state({ value: true });
});
it('...', () => {/* ... */});
});
What if mockReactRedux()
could be called in all its normal ways outside a test to apply some defaults?
mockReactRedux().state({ value: true });
describe('...', () => {
it('...', () => {/* ... */});
});