unional / ava-fixture

Fixture test for https://github.com/avajs/ava
MIT License
5 stars 1 forks source link

Fix for node 14 #82

Closed flying-sheep closed 4 years ago

flying-sheep commented 4 years ago

Note 14 interprets this as ES2015 module and therefore one has to do:

import fixture from 'ava-fixture'

fixture.default(ava, ...)

To fix this, you should do this: https://nodejs.org/api/esm.html#esm_dual_commonjs_es_module_packages

unional commented 4 years ago

Thanks. Will take a look into it. But at the same time, you can check out @unional/fixture, I have moved most of the functionality there and that is not coupled to ava. :)

flying-sheep commented 4 years ago

Thank you for the pointer!