An open API service indexing awesome lists of open source software.

https://github.com/methodgrab/babel-plugin-module-resolver-ava-test-case

Test case for tleunen/babel-plugin-module-resolver#61
https://github.com/methodgrab/babel-plugin-module-resolver-ava-test-case

Last synced: 10 months ago
JSON representation

Test case for tleunen/babel-plugin-module-resolver#61

Awesome Lists containing this project

README

          

# Test Case for [babel-plugin-module-resolver](https://github.com/tleunen/babel-plugin-module-resolver) with AVA

## Usage
- `npm start` runs the script without errors
- `npm test` throws `Error: Cannot find module 'lib/bar'`

The problem seems to be trying to import `lib/bar` in `test/helpers/foo-helper.js`.
If you comment out `import bar from 'lib/bar';` in `test/helpers/foo-helper.js` then `npm test` will run without errors.