Current working directory should not be changed. It should work exactly as node --test does.
You can add a test with console.log(process.cwd()) and see the difference.
This affects many things, e.g. relative path to the sqlite db defined in model.ts is wrongly resolved when I run tests.
Current working directory should not be changed. It should work exactly as
node --test
does. You can add a test withconsole.log(process.cwd())
and see the difference.This affects many things, e.g. relative path to the sqlite db defined in model.ts is wrongly resolved when I run tests.