https://github.com/andrewalderson/devcontainer-nx-angular-cypress
A reference app on setting up Angular and Cypress in a devcontainer
https://github.com/andrewalderson/devcontainer-nx-angular-cypress
angular cypress devcontainer nx
Last synced: 2 months ago
JSON representation
A reference app on setting up Angular and Cypress in a devcontainer
- Host: GitHub
- URL: https://github.com/andrewalderson/devcontainer-nx-angular-cypress
- Owner: andrewalderson
- License: mit
- Created: 2023-05-19T16:14:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T23:37:36.000Z (about 2 years ago)
- Last Synced: 2025-03-11T22:36:00.928Z (over 1 year ago)
- Topics: angular, cypress, devcontainer, nx
- Language: TypeScript
- Homepage:
- Size: 188 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Devcontainer for Angular and Cypress in Nx Workspace
This is the setup I use on a Windows machine with the latest version of WSL that has WSLg for displaying Linux GUI apps like Electron. The devcontainer installs the necessary Linux packages to make Cypress work and does a `Cypress install` when the devcontainer is (re)built. You can also optionally install browsers into the devcontainer. See the `containerEnv` section in `devcontainer.json` for instructions. I opted to install the browsers directly instead of using one of the [Cypress Docker Images](https://docs.cypress.io/examples/docker) so that I don't have to change the command to launch the tests and I don't have to install Docker in the devcontainer. Also, the Cypress factory image doesn't currently install Webkit. I may investigate this later. The forwared ports and vscode extensions are not really important for this but they are the defaults that I use.
I am not sure if this will work in GitHub Codespaces becuase AFAIK an x11 server or desktop-lite is required. See this [link](https://github.com/cypress-io/cypress-documentation/issues/2956) for more details on setting that up.