how to using mocha for testing #10528
Replies: 5 comments 1 reply
-
@morriswinkler |
Beta Was this translation helpful? Give feedback.
-
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/my-package/",
"projectType": "library",
"targets": {
"test": {
"executor": "nx:run-commands",
"dependsOn": [{"projects": "self", "target": "build"}],
"options": {
"commands": [
"mocha"
]
}
}
}
} |
Beta Was this translation helpful? Give feedback.
-
I got mocha working in my nx repo with local package dependencies using a script in the
Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hey all, I was able to get it working with the following
The
Hope this helps someone. |
Beta Was this translation helpful? Give feedback.
-
I added my mocha tests with the
nx:run-commands
executor.Is there any other way of doing it?
Beta Was this translation helpful? Give feedback.
All reactions