nrwl / nx-labs

A collection of Nx plugins
MIT License
144 stars 50 forks source link

chore(rspack): add jest babel config to e2e #321

Closed mandarini closed 1 year ago

mandarini commented 1 year ago

Adding this extra jest config to the child project generated by the e2e test is the only way to make the nx ecosystem ci tests pass. If this is not added, then when the e2e test tries to test the generated project, it throws a jest error:

          /home/runner/work/nx-ecosystem-ci/nx-ecosystem-ci/workspace/nx-rspack/nx-labs/tmp/nx-e2e/proj/src/app/app.spec.tsx:3
          import { render } from '@testing-library/react';
          ^^^^^^
          SyntaxError: Cannot use import statement outside a module
nx-cloud[bot] commented 1 year ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 8418224a7971c76a62d52b52e91926dbb85dd16a. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 4 targets - [`nx affected --target=e2e --parallel --max-parallel=1 --exclude=nx-ignore-e2e,gatsby-e2e`](https://cloud.nx.app/runs/IogSWowQiu) - [`nx affected --target=test --parallel --max-parallel=2`](https://cloud.nx.app/runs/1vq1Emfekb) - [`nx affected --target=build --parallel --max-parallel=3`](https://cloud.nx.app/runs/4L1QaxLFQU) - [`nx affected --target=lint --parallel --max-parallel=3`](https://cloud.nx.app/runs/ahBzvkryab)

Sent with 💌 from NxCloud.