Download node_modules/@testing-library/react/dist/config.js from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40testing-library/react/dist/config.js
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/@testing-library/react/dist/config.js
-
curl -L -o config.js https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40testing-library/react/dist/config.js
711 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.configure = configure; | |
| exports.getConfig = getConfig; | |
| var _dom = require("@testing-library/dom"); | |
| let configForRTL = { | |
| reactStrictMode: false | |
| }; | |
| function getConfig() { | |
| return { | |
| ...(0, _dom.getConfig)(), | |
| ...configForRTL | |
| }; | |
| } | |
| function configure(newConfig) { | |
| if (typeof newConfig === 'function') { | |
| // Pass the existing config out to the provided function | |
| // and accept a delta in return | |
| newConfig = newConfig(getConfig()); | |
| } | |
| const { | |
| reactStrictMode, | |
| ...configForDTL | |
| } = newConfig; | |
| (0, _dom.configure)(configForDTL); | |
| configForRTL = { | |
| ...configForRTL, | |
| reactStrictMode | |
| }; | |
| } |