This commit is contained in:
pa
2026-03-10 17:44:15 +09:00
parent 17b582c904
commit ff1529920b
237 changed files with 419 additions and 419 deletions

View File

@@ -10,7 +10,7 @@ vi.mock('../../views/Feed/Feed.vue', () => ({
default: { template: '<div />' }
}));
vi.mock('../../views/Feed/columns.jsx', () => ({ columns: [] }));
vi.mock('../../plugin/router', () => ({
vi.mock('../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -31,8 +31,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../service/database', () => ({
vi.mock('../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../services/database', () => ({
database: new Proxy(
{},
{
@@ -43,7 +43,7 @@ vi.mock('../../service/database', () => ({
}
)
}));
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockResolvedValue(''),
@@ -61,8 +61,8 @@ vi.mock('../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../service/watchState', () => ({
vi.mock('../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('vue-i18n', async (importOriginal) => {

View File

@@ -10,7 +10,7 @@ vi.mock('../../views/Feed/Feed.vue', () => ({
default: { template: '<div />' }
}));
vi.mock('../../views/Feed/columns.jsx', () => ({ columns: [] }));
vi.mock('../../plugin/router', () => ({
vi.mock('../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -31,8 +31,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../service/database', () => ({
vi.mock('../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../services/database', () => ({
database: new Proxy(
{},
{
@@ -43,7 +43,7 @@ vi.mock('../../service/database', () => ({
}
)
}));
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -61,8 +61,8 @@ vi.mock('../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../service/watchState', () => ({
vi.mock('../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('vue-i18n', async (importOriginal) => {

View File

@@ -10,7 +10,7 @@ vi.mock('../../views/Feed/Feed.vue', () => ({
default: { template: '<div />' }
}));
vi.mock('../../views/Feed/columns.jsx', () => ({ columns: [] }));
vi.mock('../../plugin/router', () => ({
vi.mock('../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -31,8 +31,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../service/database', () => ({
vi.mock('../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../services/database', () => ({
database: new Proxy(
{},
{
@@ -43,7 +43,7 @@ vi.mock('../../service/database', () => ({
}
)
}));
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockResolvedValue('{}'),
@@ -61,8 +61,8 @@ vi.mock('../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../service/watchState', () => ({
vi.mock('../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('vue-i18n', async (importOriginal) => {

View File

@@ -8,7 +8,7 @@ vi.mock('../../views/Feed/Feed.vue', () => ({
default: { template: '<div />' }
}));
vi.mock('../../views/Feed/columns.jsx', () => ({ columns: [] }));
vi.mock('../../plugin/router', () => ({
vi.mock('../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -29,8 +29,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../service/database', () => ({
vi.mock('../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../services/database', () => ({
database: new Proxy(
{},
{
@@ -41,7 +41,7 @@ vi.mock('../../service/database', () => ({
}
)
}));
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -59,8 +59,8 @@ vi.mock('../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../service/watchState', () => ({
vi.mock('../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('vue-i18n', async (importOriginal) => {

View File

@@ -10,7 +10,7 @@ const mocks = vi.hoisted(() => ({
toastDismiss: vi.fn()
}));
vi.mock('../../service/webapi', () => ({
vi.mock('../../services/webapi', () => ({
default: {
execute: (...args) => mocks.execute(...args)
}

View File

@@ -14,7 +14,7 @@ const mocks = vi.hoisted(() => ({
}
}));
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: mocks.configRepository
}));