Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ The library a project with documentation in `docs`.
- `sh compose.sh <target>` for dependency/bootstrap setup.
- `sh test.sh <target>` for tests.
- **NEVER** run tests via local `npm`.
- For parallel runs in multiple worktrees, set a unique namespace:
- `COMPOSE_PROJECT_NAME=ngmocks_<your-unique-string> sh compose.sh <target>`
- `COMPOSE_PROJECT_NAME=ngmocks_<your-unique-string> sh test.sh <target>`

## Update all package-lock.json

Expand Down
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ To develop `ng-mocks` you need to use `bash` and `WSL` in case if you are on Win

- it will take a while, but afterwards you have all dependencies installed

### Docker compose namespace for parallel worktrees

To avoid collisions when multiple worktrees run docker compose in parallel, set `COMPOSE_PROJECT_NAME`.
Use your own unique string for each task/worktree.

```shell
COMPOSE_PROJECT_NAME=ngmocks_<your-unique-string> sh ./compose.sh e2e
COMPOSE_PROJECT_NAME=ngmocks_<your-unique-string> sh ./test.sh e2e
```

## How to run unit tests locally

```shell
Expand Down