Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | /** |
| 6 | * @fileoverview Test setup code that defines functionality meant to run |
| 7 | * before each test. |
| 8 | */ |
| 9 | |
| 10 | import {resetState, store} from 'reducers/base.js'; |
| 11 | |
| 12 | Mocha.beforeEach(() => { |
| 13 | // We reset the Redux state before each test run to prevent Redux |
| 14 | // state changes in previous tests from affecting results. |
| 15 | store.dispatch(resetState()); |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 16 | }); |