Skip to content

Commit

Permalink
chore: add example for executor as key
Browse files Browse the repository at this point in the history
  • Loading branch information
kasir-barati committed Oct 30, 2024
1 parent 91a2759 commit 0324448
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/docs/monorepo/executor-as-key.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// /libs/lib1/project.json
{
// ...
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/server/ai/jest.config.ts"
}
}
// ...
}

// nx.json
{
// ...
"targetDefaults": {
"@nx/jest:jest": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.cjs"],
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
}
// ...
}

0 comments on commit 0324448

Please sign in to comment.