Open dcjayasuriya2020 opened 3 years ago
const __dirname = path.resolve();
import path from 'path'; import { fileURLToPath } from 'url'; // data path const filename = fileURLToPath( import.meta.url ); const dirname = path.dirname( filename ); //* Base directory of the data folder const templateDir = path.join( dirname, '/../.data/' );
code in the datafile is
lib.baseDir = path.join(__dirname, '/../.data/');
in git bash it indicates when run for test err,How to get clear on this?