Electron: EACCES permission denied nodejs fs

I tried to use better-sqlite, which creates a db file in ./test.db .

As i see the file is always created with only read permissions. I’m thinking that all files in snap are read only? Where should i create a file so that i can write to it?