Replace sqlite3 by @cap-js/sqlite (#551)

* Make tests run w/ cap-js/sqlite
* Set cwd in test
This commit is contained in:
Christian Georgi
2023-11-10 15:01:20 +05:30
committed by GitHub
parent 75002ae0ef
commit 78174bfe28
5 changed files with 24 additions and 44 deletions

View File

@@ -12,7 +12,7 @@ describe('cap/samples - Hierarchical Data', ()=>{
`
const model = cds.compile.for.nodejs(csn)
const {Categories:Cats} = model.definitions
const {expect} = cds.test
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