DenoDDeno
Powered by
Gustav DahlG
Denoβ€’2y ago
Gustav Dahl

Test multiple workspace projects

I got two projects inside my deno workspace: project1 and project1-tests.
From project1-tests I run integrations tests against project1.

I do this by running the following from the project1-test folder:
deno test --allow-all --watch . --watch ../project1/src/ 
deno test --allow-all --watch . --watch ../project1/src/ 


This will trigger the test runner to run when files are changes inside project1 and project1-tests.
The problem I got is that the tests only run if files project1-tests changes. If I do an update in project1 the test runner reports this:

Watcher File change detected! Restarting!

ok | 0 passed | 0 failed (0ms)

Watcher Test finished. Restarting on file change...
Watcher File change detected! Restarting!

ok | 0 passed | 0 failed (0ms)

Watcher Test finished. Restarting on file change...


What should I do to make the tests run regardless of what files are changed?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Sanitize multiple test steps
FjordWardenFFjordWarden / help
3y ago
fresh + workspace
devinDdevin / help
16mo ago
workspace setup
PauliusPPaulius / help
2y ago
workspace import
adoublefAadoublef / help
3y ago