Replace sqlite3 by @cap-js/sqlite (#551)
* Make tests run w/ cap-js/sqlite * Set cwd in test
This commit is contained in:
@@ -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
|
||||
|
||||
5
test/localized-data/package.json
Normal file
5
test/localized-data/package.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@cap-js/sqlite": "^1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user