ngxs / store

🚀 NGXS - State Management for Angular
http://ngxs.io
MIT License
3.53k stars 400 forks source link

docs: update unit-testing recipe #2175

Closed arturovt closed 3 months ago

arturovt commented 3 months ago

In this commit, we updated the unit-testing recipe with a lot more useful information and code guides. We included the actions collector snippet, which has been successfully used in production apps for years and can be safely applied to external user apps.

nx-cloud[bot] commented 3 months ago

☁️ Nx Cloud Report

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

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 6 targets - [`nx run-many --target=test --all --configuration=ci --base=remotes/origin/master --head=HEAD`](https://cloud.nx.app/runs/zZPMVRPiL5?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=lint --all --configuration=ci --base=remotes/origin/master --head=HEAD`](https://cloud.nx.app/runs/miga42pS4U?utm_source=pull-request&utm_medium=comment) - [`nx lint-types store`](https://cloud.nx.app/runs/O3bE7Lbtpw?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=build --all`](https://cloud.nx.app/runs/LY7y1xy1rD?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=lint --all`](https://cloud.nx.app/runs/Sy5CBCtjnc?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=test --all --configuration=ci --maxWorkers=4`](https://cloud.nx.app/runs/WZVaDELvO4?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.

bundlemon[bot] commented 3 months ago

BundleMon (Integration Projects)

Unchanged files (2) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | Main bundles(Gzip)
hello-world-ng17/dist-integration/main.(hash)
.js
| 68.53KB | +1% :white_check_mark: | Main bundles(Gzip)
hello-world-ng16/dist-integration/main.(hash)
.js
| 67.54KB | +1%

No change in files bundle size

Final result: :white_check_mark:

View report in BundleMon website ➡️


Current branch size history | Target branch size history

codeclimate[bot] commented 3 months ago

Code Climate has analyzed commit 84743e88 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 95.5% (0.0% change).

View more on Code Climate.