chai-enzyme
Chai.js assertions and convenience functions for testing React Components with enzyme
파일 탐색기
최종 버전 다운로드 (.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
🚀 설치 가이드
1. 코드 내려받기
git clone https://github.com/enzymejs/chai-enzyme
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd chai-enzyme
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Node.js
쉬움 추천사전 준비물
$ npm install chai-enzyme --save-dev
package.json에 명시된 라이브러리들을 내려받아 설치합니다.
$ npm install
package.json에 명시된 라이브러리들을 내려받아 설치합니다.
$ npm run test:lint
이 명령어를 터미널에 그대로 입력해 실행하세요.
$ npm run test:unit
이 명령어를 터미널에 그대로 입력해 실행하세요.
$ npm test
이 명령어를 터미널에 그대로 입력해 실행하세요.
명령어 실행 후 터미널에 나타나는 주소(보통 http://localhost:3000 형태)를 브라우저에서 열어보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
