79259029

Date: 2024-12-06 18:41:40
Score: 0.5
Natty:
Report link

in your commonJS module try something like that:

const importExpect = async () => await import('chai').then((chai) => chai.expect);

(async () => {
    const expect = await importExpect()
    // your old tests
    expect('true').to.equal('true');
    // your old tests
})()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrey Smolko