@@ -15,6 +15,8 @@ import * as ConfigValidation from "../../src/ts/config/validation";
1515import { configEvent } from "../../src/ts/events/config" ;
1616import * as ApeConfig from "../../src/ts/ape/config" ;
1717import * as Notifications from "../../src/ts/states/notifications" ;
18+ import * as TestState from "../../src/ts/states/test" ;
19+
1820const { replaceConfig, getConfig } = __testing ;
1921
2022describe ( "Config" , ( ) => {
@@ -41,6 +43,7 @@ describe("Config", () => {
4143 ) ;
4244 const miscReloadAfterMock = vi . spyOn ( Misc , "reloadAfter" ) ;
4345 const miscTriggerResizeMock = vi . spyOn ( Misc , "triggerResize" ) ;
46+ const stateIsTestActiveMock = vi . spyOn ( TestState , "isTestActive" ) ;
4447
4548 const mocks = [
4649 canSetConfigWithCurrentFunboxesMock ,
@@ -56,13 +59,10 @@ describe("Config", () => {
5659 vi . useFakeTimers ( ) ;
5760 mocks . forEach ( ( it ) => it . mockClear ( ) ) ;
5861
59- vi . mock ( "../../src/ts/test/test-state" , ( ) => ( {
60- isActive : true ,
61- } ) ) ;
62-
6362 isConfigValueValidMock . mockReturnValue ( true ) ;
6463 canSetConfigWithCurrentFunboxesMock . mockReturnValue ( true ) ;
6564 dbSaveConfigMock . mockResolvedValue ( ) ;
65+ stateIsTestActiveMock . mockReturnValue ( true ) ;
6666
6767 replaceConfig ( { } ) ;
6868 } ) ;
0 commit comments