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 #19131
  • Loading branch information
erenken committed Nov 2, 2023
1 parent 17b3e01 commit 7da3996
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 216 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "NxDevContainer",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:latest",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
},
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@
"@types/tmp": "^0.2.0",
"@types/yargs": "^17.0.10",
"@types/yarnpkg__lockfile": "^1.1.5",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@typescript-eslint/type-utils": "^6.9.1",
"@typescript-eslint/utils": "^6.9.1",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"@typescript-eslint/type-utils": "5.60.1",
"@typescript-eslint/utils": "5.62.0",
"@xstate/immer": "0.3.1",
"@xstate/inspect": "0.7.0",
"@xstate/react": "3.0.1",
Expand All @@ -151,7 +151,6 @@
"conventional-changelog-cli": "^2.0.23",
"convert-source-map": "^2.0.0",
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.0",
"cypress": "^13.0.0",
"cytoscape": "^3.18.2",
Expand Down Expand Up @@ -240,7 +239,6 @@
"parse5": "4.0.0",
"postcss": "8.4.19",
"postcss-import": "~14.1.0",
"postcss-loader": "^7.3.3",
"postcss-preset-env": "~7.5.0",
"postcss-url": "~10.1.3",
"prettier": "^2.6.2",
Expand Down
Loading

0 comments on commit 7da3996

Please sign in to comment.