When you are in a project that use caniuse-api in node_modules, caniuse-db is in node_modules/caniuse-api/node_modules/caniuse-db and since fs use process.cwd() to resolve relative filename, this cannot really be tested automatically (since tests are run from caniuse-api folder.
When you are in a project that use caniuse-api in
node_modules
,caniuse-db
is innode_modules/caniuse-api/node_modules/caniuse-db
and since fs useprocess.cwd()
to resolve relative filename, this cannot really be tested automatically (since tests are run from caniuse-api folder.