cds.test.in(...) must come first (#623)

* cds.test.in(...) must come first

* revert unrelated change
This commit is contained in:
Johannes Vogel
2023-11-10 11:52:16 +01:00
committed by GitHub
parent 78174bfe28
commit 46a091fe8b

View File

@@ -1,4 +1,5 @@
const cds = require('@sap/cds/lib')
const { expect } = cds.test.in(__dirname,'..')
describe('cap/samples - Hierarchical Data', ()=>{
@@ -12,7 +13,6 @@ describe('cap/samples - Hierarchical Data', ()=>{
`
const model = cds.compile.for.nodejs(csn)
const {Categories:Cats} = model.definitions
const { expect } = cds.test.in(__dirname,'..')
before ('bootstrap sqlite in-memory db...', async()=>{
await cds.deploy (csn) .to ('sqlite::memory:') // REVISIT: cds.compile.to.sql should accept cds.compiled.for.nodejs models