🐛(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, undefined,
{ slug: 'example-slug', accessId: '1-1-1-1-1' }, { slug: 'example-slug', accessId: '1-1-1-1-1' },
undefined, undefined,
{ client: {}, meta: undefined, mutationKey: undefined },
), ),
); );
expect(fetchMock.lastUrl()).toContain( expect(fetchMock.lastUrl()).toContain(

View File

@@ -104,7 +104,8 @@ describe('useUpdateMailDomainAccess', () => {
expect(onSuccess).toHaveBeenCalledWith( expect(onSuccess).toHaveBeenCalledWith(
mockResponse, // data mockResponse, // data
{ slug: 'example-slug', accessId: '1-1-1-1-1', role: Role.VIEWER }, // variables { 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( expect(fetchMock.lastUrl()).toContain(

View File

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