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

Implement 'jest.requireMock' #4292

Merged
merged 1 commit into from
Aug 21, 2017

Conversation

TheParadoxTurtle-zz
Copy link
Contributor

@TheParadoxTurtle-zz TheParadoxTurtle-zz commented Aug 18, 2017

Summary

Implements jest.requireMock
Similar to #4260

Test plan

Added jest_require_mock.test.js, and added to extract_requires.test.js for testing. Ran yarn test, partial output below

`jeffreylai-mbp:jest jeffreylai$ yarn test
Using globally installed version of Yarn
yarn test v0.28.1
$ yarn run typecheck --silent && yarn run lint --silent && yarn run jest --silent && yarn run test-examples --silent
Using globally installed version of Yarn
Found 0 errors
Using globally installed version of Yarn
Using globally installed version of Yarn
...

...
Test Suites: 162 passed, 162 total
Tests: 1502 passed, 1502 total
Snapshots: 671 passed, 671 total
Time: 100.887s
Ran all test suites.
Using globally installed version of Yarn
$ cd /Users/jeffreylai/Documents/jest/examples/react-native
$ yarn --production

Using globally installed version of Yarn
warning package.json: No license field
warning jest-rn@1.0.0: No license field
$ cd /Users/jeffreylai/Documents/jest/scripts
$ /Users/jeffreylai/Documents/jest/packages/jest-cli/bin/jest.js --projects /Users/jeffreylai/Documents/jest/examples/async /Users/jeffreylai/Documents/jest/examples/enzyme /Users/jeffreylai/Documents/jest/examples/getting_started /Users/jeffreylai/Documents/jest/examples/jquery /Users/jeffreylai/Documents/jest/examples/manual_mocks/package.json /Users/jeffreylai/Documents/jest/examples/module_mock/package.json /Users/jeffreylai/Documents/jest/examples/react/package.json /Users/jeffreylai/Documents/jest/examples/react-native/package.json /Users/jeffreylai/Documents/jest/examples/snapshot/package.json /Users/jeffreylai/Documents/jest/examples/timer/package.json /Users/jeffreylai/Documents/jest/examples/typescript/package.json

...

...

Test Suites: 19 passed, 19 total
Tests: 39 passed, 39 total
Snapshots: 12 passed, 12 total
Time: 3.358s, estimated 6s
Ran all test suites in 11 projects.
✨ Done in 123.80s.`

@aaronabramov
Copy link
Contributor

looks good! thanks @theparadoxturtle

@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 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants