Migrate from ESLint to Oxlint and Oxfmt

This commit is contained in:
Alejandro Celaya
2026-07-26 09:12:18 +02:00
parent 2cf85a18b3
commit 54d4d9ebad
81 changed files with 2004 additions and 3790 deletions

View File

@@ -44,12 +44,15 @@ describe('ShlinkApiClientBuilder', () => {
await apiClient.health();
expect(jsonRequest).toHaveBeenCalledWith(expect.stringMatching(new RegExp(`^${url}`)), expect.objectContaining({
credentials: undefined,
headers: {
'X-Api-Key': apiKey,
},
}));
expect(jsonRequest).toHaveBeenCalledWith(
expect.stringMatching(new RegExp(`^${url}`)),
expect.objectContaining({
credentials: undefined,
headers: {
'X-Api-Key': apiKey,
},
}),
);
});
it('includes credentials when forwarding is enabled', async () => {
@@ -61,11 +64,14 @@ describe('ShlinkApiClientBuilder', () => {
await apiClient.health();
expect(jsonRequest).toHaveBeenCalledWith(expect.stringMatching(new RegExp(`^${url}`)), expect.objectContaining({
credentials: 'include',
headers: {
'X-Api-Key': apiKey,
},
}));
expect(jsonRequest).toHaveBeenCalledWith(
expect.stringMatching(new RegExp(`^${url}`)),
expect.objectContaining({
credentials: 'include',
headers: {
'X-Api-Key': apiKey,
},
}),
);
});
});