<commit_before># chai-xpath-react

[![Build Status](https://travis-ci.org/badeball/chai-xpath-react.svg?branch=master)](https://travis-ci.org/badeball/chai-xpath-react)

XPath matchers for [React][react] elements. It is recommended that you use
[shallow rendering][shallow-rendering] of components and make your assertion on
its output.

[react]: http://facebook.github.io/react/
[shallow-rendering]: https://facebook.github.io/react/docs/test-utils.html#shallow-rendering

## Usage

```javascript
Chai.use(require("chai-xpath-react"));
```

```javascript
var element = (
  <div>
    <ul>
      <li>foo</li><commit_msg>Add a code climate badge to the README<commit_after># chai-xpath-react

[![Build Status](https://travis-ci.org/badeball/chai-xpath-react.svg?branch=master)](https://travis-ci.org/badeball/chai-xpath-react)
[![Code Climate](https://codeclimate.com/github/badeball/chai-xpath-react/badges/gpa.svg)](https://codeclimate.com/github/badeball/chai-xpath-react)

XPath matchers for [React][react] elements. It is recommended that you use
[shallow rendering][shallow-rendering] of components and make your assertion on
its output.

[react]: http://facebook.github.io/react/
[shallow-rendering]: https://facebook.github.io/react/docs/test-utils.html#shallow-rendering

## Usage

```javascript
Chai.use(require("chai-xpath-react"));
```

```javascript
var element = (
  <div>
    <ul>
      <li>foo</li>
{'fraction_non_alphanumeric': 0.16997167138810199, 'fraction_numerical': 0.0, 'mean_word_length': 5.012765957446809, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7261306', 'n_tokens_mistral': 509, 'n_tokens_neox': 499, 'n_words': 86}