chaijs / chai-as-promised

Extends Chai with assertions about promises.
MIT License
1.42k stars 109 forks source link

Feature request: Support for es6 modules #280

Closed thematho closed 5 months ago

thematho commented 11 months ago

Hi, Currently there is no support for ES6 Imports, I found this closed issue #133, mentionening that es6 module support will be implemented at one point.

Example: import * as chaiAsPromised from 'chai-as-promised'; or import { chaiAsPromised } from 'chai-as-promised';

Actual error:

SyntaxError: The requested module './index.js' does not provide an export named 'default'
 ❌ Could not import your test module. Check the browser logs or open the browser in debug mode for more information. 
43081j commented 5 months ago

Closed by #287 (though yet to be released in 8.0.0)