Use ES2022 in apps/clients

This commit is contained in:
Arthur Belleville 2026-04-19 19:24:47 +02:00
parent 901c54169c
commit 5d7dbc95fc
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ export const renderWithProviders = (
options: RenderWithProvidersOptions = {}
): RenderResult & { user: ReturnType<typeof userEvent.setup> } => {
const { route = "/", path, language = "fr" } = options;
const testUser = Object.prototype.hasOwnProperty.call(options, "testUser") ? options.testUser : defaultUser;
const testUser = Object.hasOwn(options, "testUser") ? options.testUser : defaultUser;
testI18n.changeLanguage(language);

View file

@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2022",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"types": ["vite/client"],
"module": "ESNext",
"skipLibCheck": true,