🐛(tests) fix lint-front and test-front errors

fix dependency import error and failing e2e tests due to
@tanstack upgrade
This commit is contained in:
Marie PUPO JEAMMET
2025-10-27 18:49:52 +01:00
committed by BEY Quentin
parent fa7d24545f
commit 490fdd2ed4
3 changed files with 5 additions and 4 deletions

View File

@@ -76,6 +76,7 @@ describe('useDeleteMailDomainAccess', () => {
undefined,
{ slug: 'example-slug', accessId: '1-1-1-1-1' },
undefined,
{ client: {}, meta: undefined, mutationKey: undefined },
),
);
expect(fetchMock.lastUrl()).toContain(

View File

@@ -104,7 +104,8 @@ describe('useUpdateMailDomainAccess', () => {
expect(onSuccess).toHaveBeenCalledWith(
mockResponse, // data
{ slug: 'example-slug', accessId: '1-1-1-1-1', role: Role.VIEWER }, // variables
undefined, // context
undefined, // onMutateResult
{ client: {}, meta: undefined, mutationKey: undefined }, // context
),
);
expect(fetchMock.lastUrl()).toContain(

View File

@@ -1,11 +1,10 @@
import fs from 'fs';
import path from 'path';
import { hideBin } from 'yargs/helpers';
import yargs from 'yargs/yargs';
import yargs from 'yargs';
// Get our args
const argv = yargs(hideBin(process.argv)).argv;
const argv = yargs(process.argv).argv;
const { app, output } = argv;
const folderPath = './locales/' + app;