Sha256: 09f85d7edf7795f65d39c8c382b611edd4de5f98923647d58aa49aab7bcc01f5

Contents?: true

Size: 711 Bytes

Versions: 26

Compression:

Stored size: 711 Bytes

Contents

"use strict";

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
  };
}

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/@testing-library/react/dist/config.js