chai-enzyme
Chai.js assertions and convenience functions for testing React Components with enzyme
File Explorer
Download Latest Version (.zip)- checked.js
- className.js
- contain.js
- containMatchingElement.js
- descendants.js
- disabled.js
- empty.js
- exist.js
- generic.js
- html.js
- id.js
- match.js
- props.js
- ref.js
- selected.js
- tagName.js
- text.js
- type.js
- value.js
- exactly.js
- ChaiWrapper.js
- CheerioTestWrapper.js
- debug.js
- index.js
- reactNodeToString.js
- ReactTestWrapper.js
- ShallowTestWrapper.js
- TestWrapper.js
- wrap.js
- createTest.js
- helper.js
- attr.test.js
- blank.test.js
- checked.test.js
- className.test.js
- contain.test.js
- containMatchingElement.test.js
- data.test.js
- descendants.test.js
- disabled.test.js
- empty.test.js
- exactly.test.js
- exist.test.js
- html.test.js
- id.test.js
- inspect.test.js
- match.test.js
- mocha.opts
- null.test.js
- present.test.js
- prop.test.js
- props.test.js
- ref.test.js
- selected.test.js
- state.test.js
- style.test.js
- tagName.test.js
- text.test.js
- type.test.js
- value.test.js
- .babelrc
- .gitignore
- .lgtm
- .npmignore
- .travis.yml
- CHANGELOG.md
- LICENSE
- MAINTAINERS
- package.json
- README.md
π Installation Guide
1. Get the code
git clone https://github.com/enzymejs/chai-enzyme
Downloads the entire project code from GitHub to your computer.
cd chai-enzyme
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
$ npm install chai-enzyme --save-dev
Downloads and installs the libraries listed in package.json.
$ npm install
Downloads and installs the libraries listed in package.json.
$ npm run test:lint
Type this command into your terminal and run it.
$ npm run test:unit
Type this command into your terminal and run it.
$ npm test
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
