Skip to content

Commit

Permalink
feat(nextjs): can set compiler when setting up `nxComponentTestingPre…
Browse files Browse the repository at this point in the history
…set`

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 nrwl#19131
  • Loading branch information
erenken committed Oct 29, 2023
1 parent b01efa1 commit e023b19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e2e/next-extensions/src/next-component-tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function addBabelSupport(path: string) {
);
});

// added needed .babelrc file with defaults
createFile(
`${path}/.babelrc`,
JSON.stringify({ presets: ['next/babel'], plugins: ['istanbul'] })
Expand Down

0 comments on commit e023b19

Please sign in to comment.