From a8a746d5f7c5cf996a3c2b515dc2874ea00aa61d Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 30 Jun 2021 23:19:03 +0200 Subject: [PATCH] Automatically install rtl version with concurrent rendering support --- scripts/use-react-dist-tag.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/use-react-dist-tag.js b/scripts/use-react-dist-tag.js index 21d7f06ade6892..1594eb8074244b 100644 --- a/scripts/use-react-dist-tag.js +++ b/scripts/use-react-dist-tag.js @@ -50,6 +50,8 @@ async function main(options) { packageJson.devDependencies['@eps1lon/enzyme-adapter-react-17'] = 'npm:@eps1lon/enzyme-adapter-react-next'; + packageJson.devDependencies['@testing-library/react'] = + 'https://pkg.csb.dev/testing-library/react-testing-library/commit/0e2cf7da/@testing-library/react'; // add newline for clean diff fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}${os.EOL}`);