For example.
My repo contains a three folders: "project1" "project2" and "core".
When I change a files under "core" folder I want trigger "npm run test Project1" and "npm run test project2".
If I changed the "project1" files I want test only "project 1".
If I changed the "poject2" - I want test only "project2".
I don't want to separate this folders on separate repositories, or use git submodules and subthrees. And also I don't want to every time test everything.
I heard that in teamcity such task is called triggers.
Does the "bitbucket pipeline" support this a kind of feature?