-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Cleanup and cosmetic changes
Testing
Mocks folder
- Rename
nx-plugin/mocktomodels/mocks - Rename
examples/plugins/src/lighthouse/mocktoexamples/plugins/src/lighthouse/mocks - After all folders are renamed to
mocksadjust inputs innx.json"!{projectRoot}/@(test|mocks|mock)/**/*""!{projectRoot}/**/?(*.)mock.[jt]s?(x)"
Mocks creation
- unify test folder setup and document it. Use the creation from static files instead of generator that depend on Nx specifics like tree etc. Cut deps to Nx devkit would be best.
- e2e/ci-e2e/setup.ts#setupTestReop
- e2e/ci-e2e/test-folder-setup.ts#restoreNxIgnoredFiles
Test Coverage
- improve test coverage config to exclude as much noise as possible and increase coverage
src/lib/index.ts- exclude files that only maintain exports e.g.index.ts(in some places index.ts files also contain actual logic. here I we can refactor to have allindex.tsused for barrel export only and only insrcroot)- exclude other files that are not relevant for test coverage
.type.ts
Caching
- Move
zod2md.tsunder{projectRoot}/toolsand make sure"!{projectRoot}/tools/**/*"is added undernx.json#namedInputs.productionchore: add zod2md-nx-plugin #1162 - remove vitest executor defaults from
nx.jsonin favour of target name as they are conflicting and only one of them wins. refactor: update to nx 22 #1196
"e2e": {
"cache": true,
"inputs": ["default", "test-vitest-inputs"],
"dependsOn": ["^build"]
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "test-vitest-inputs"],
"options": {
"passWithNoTests": true,
"watch": false
}
},Tasks
Configuration
- add nx plugin for build target and add
zod2md-jsdocsdependencies refactor: add task derivation for build #1188 - add nx plugin for unit and int test targets. provide options to be able to register it multiple times for different targets
Graph
- reduce dependencies of
test-nx-utilsproject
Metadata
Metadata
Assignees
Labels
No labels