You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hoping to contribute to enzyme, but I'm having trouble running the test suite. Not sure if I've missed anything with the setup, but I'd appreciate some help getting up and running! Thanks a lot.
Steps taken:
git clone https://github.com/airbnb/enzyme
cd enzyme
npm install
npm run react:15 - this waits for ~10 secs, and then exits without feedback. Not sure whether that's the issue?
npm test fails, with a linter error.
Error message:
/path/to/enzyme/packages/enzyme-adapter-react-15/src/ReactFifteenAdapter.js
lerna ERR! execute 10:31 error Unable to resolve path to module 'enzyme' import/no-unresolved
lerna ERR! execute 10:31 error Missing file extension for "enzyme" import/extensions
lerna ERR! execute 20:8 error Unable to resolve path to module 'enzyme-adapter-utils' import/no-unresolved
lerna ERR! execute 20:8 error Missing file extension for "enzyme-adapter-utils" import/extensions
Hey @jack-lewin, you're right - we should add some steps to the contributing guide.
Due to our repo structure and hard to explain things, our test suite currently runs on built enzyme. This means you need to run npm run build before running the test suite.
If you are actively developing, the workflow I recommend is to run npm run build:watch in one terminal, and npm run test:watch in another terminal. This should provide you with ~realtime feedback.
Hi,
I'm hoping to contribute to enzyme, but I'm having trouble running the test suite. Not sure if I've missed anything with the setup, but I'd appreciate some help getting up and running! Thanks a lot.
Steps taken:
git clone https://github.com/airbnb/enzyme
cd enzyme
npm install
npm run react:15
- this waits for ~10 secs, and then exits without feedback. Not sure whether that's the issue?npm test
fails, with a linter error.Error message:
List of globally-installed packages:
The text was updated successfully, but these errors were encountered: