From e023b1929106b18a2c24316bfc0f02731c5a8075 Mon Sep 17 00:00:00 2001 From: Eric Renken Date: Sun, 29 Oct 2023 04:30:54 +0000 Subject: [PATCH] =?UTF-8?q?feat(nextjs):=20can=20set=20compiler=20when=20s?= =?UTF-8?q?etting=20up=20`nxComponentTestingPre=E2=80=A6=20=E2=80=A6set`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently nextjs only uses the *swa* compiler To use @cypress/code-coverage you need to use *babel*, you can now select which compiler to use. closed #19131 --- e2e/next-extensions/src/next-component-tests.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e/next-extensions/src/next-component-tests.test.ts b/e2e/next-extensions/src/next-component-tests.test.ts index cc16639e0f56f..2a33b7cfdf587 100644 --- a/e2e/next-extensions/src/next-component-tests.test.ts +++ b/e2e/next-extensions/src/next-component-tests.test.ts @@ -98,6 +98,7 @@ function addBabelSupport(path: string) { ); }); + // added needed .babelrc file with defaults createFile( `${path}/.babelrc`, JSON.stringify({ presets: ['next/babel'], plugins: ['istanbul'] })