Couldn't find default config.js in your project

unit-testing

#1

hi
i have this message

Couldn’t find default config.js in your project

but all seems ok

in test.js

const {
  getCurrentDateFormat
} = require('../src/app.js');


 it('return current date format yyyy-mm-dd', () => {
    console.log(getCurrentDateFormat())
  });

return

app.js

module.exports = {

app,

getCurrentDateFormat

};

function getCurrentDateFormat() {

    return new Date().toLocaleString("fr-FR", {

    year: "numeric",

    month: "2-digit",

    day: "2-digit"

});

}

why ?


#2

i add a blank config.js file in root and message disapear.