🐛(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:
committed by
BEY Quentin
parent
fa7d24545f
commit
490fdd2ed4
@@ -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(
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user