Use ES2022 in apps/clients
This commit is contained in:
parent
901c54169c
commit
5d7dbc95fc
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue