You can customize how Momentic searches for relevant entities in your file system by defining custom include and exclude keys in the Momentic project configuration file. These keys can be set to an array of globs patterns that control what files to include and exclude respectively when resolving tests. These keys only affect commands that read from your local file system (e.g. run, app) and not those that only interact with Momentic Cloud (e.g. queue).

Common library folders such as node_modules, .git, and .venv are always excluded from search by Momentic.

Example configuration

name: example-project
include:
  # Every test file under the tests folder
  - "tests/**/*.test.yaml"
  # Every module in the current directory and below
  - "**/*.module.yaml"
  # Every module in the common folder above us
  - "../common/**/*.module.yaml"
exclude:
  # Any file in the out directory
  - "out/**/*"
[...]

Was this page helpful?