To speedup tests, instead of using a sqlite file database, we should use an in memory temporary database. This is possible using
better-sqlite3
by passing
:memory:
instead of a filename.
I tried with strapi 4.25.0 and better-sqlite3 10.0.0 by writing the following config :
```typescript
module.exports = () => ({
connection: {
client: 'sqlite',
connection: {
filename: ':memory:',
}
},
});
```
But it fails with the error
SqliteError: unable to open database file
, because the filename is resolved using
path.resolve
.