to ask why they define object like that using Object.defineProperty and not like this:
globalThis[JEST_MATCHERS_OBJECT] = {
matchers: {},
state: defaultState,
}
isn't this more simple?
defineProperty lets you specify if the value can be deleted or edited. And I would guess what you're seeing is probably a compiler output
thank you very much
Обсуждают сегодня