diff --git a/node.js/cds-test.md b/node.js/cds-test.md index 914d871ca..aadc295f5 100644 --- a/node.js/cds-test.md +++ b/node.js/cds-test.md @@ -197,7 +197,10 @@ const { Test } = cds.test cds.test = (...args) => (new Test).run(...args) ``` +:::warning Run `cds.test` once per test file +`@sap/cds` relies on server state like `cds.model`. Running `cds.test` multiple times within the same test file can lead to a conflicting state and erratic behavior. +:::