Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the exports of jest-matcher to be just expect #2391

Merged
merged 1 commit into from
Dec 20, 2016

Conversation

vjeux
Copy link
Contributor

@vjeux vjeux commented Dec 20, 2016

This way we can have the same top level api as expect npm module:

const expect = require('jest-matchers');

This way we can have the same top level api as expect npm module:

```
const expect = require('jest-matchers');
```
@aaronabramov
Copy link
Contributor

do we have a good way of doing

import expect, {setState} form 'expect';

yet?

@cpojer cpojer merged commit f3060bb into jestjs:master Dec 20, 2016
@cpojer
Copy link
Member

cpojer commented Dec 20, 2016

@DmitriiAbramov feel free to codemod everything to import/export.

aaronabramov pushed a commit to aaronabramov/jest that referenced this pull request Dec 22, 2016
This way we can have the same top level api as expect npm module:

```
const expect = require('jest-matchers');
```
skovhus pushed a commit to skovhus/jest that referenced this pull request Apr 29, 2017
This way we can have the same top level api as expect npm module:

```
const expect = require('jest-matchers');
```
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
This way we can have the same top level api as expect npm module:

```
const expect = require('jest-matchers');
```
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants