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

nodejs instanceof array e2e test and fix #7903

Closed
wants to merge 8 commits into from

Conversation

chekkan
Copy link

@chekkan chekkan commented Feb 14, 2019

Summary

This is to contribute to the pull request #5995.

Added e2e test for Array instanceof error. I was able to reproduce this error locally with jest version 24.1.0 and "testEnvironment": "node" as reported in the original issue #2549. And verified this change against it and saw it working.

I couldn't reproduce this issue in "testEnvironment": "jsdom". And I couldn't fail the e2e tests against node version 6, 8, and 10 as well.

Test plan

Node version 6

node --version
v6.14.3
➜ pwd
/Users/chekkan/dev/facebook/jest/e2e/instanceof
➜ node ../../packages/jest-cli/bin/jest.js
 PASS  __tests__/test.js
  ✓ fs Error (5ms)
  ✓ http error (96ms)
  ✓ querystring parse array (1ms)

Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        1.051s
Ran all test suites.

Node version 8

➜ node --version
v8.11.1
➜ pwd
/Users/chekkan/dev/facebook/jest/e2e/instanceof
➜ node ../../packages/jest-cli/bin/jest.js
 PASS  __tests__/test.js
  ✓ fs Error (4ms)
  ✓ http error (14ms)
  ✓ querystring parse array (3ms)

Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        0.798s
Ran all test suites.

Node version 10

➜ node --version
v8.11.1
➜ pwd
/Users/chekkan/dev/facebook/jest/e2e/instanceof
➜ node ../../packages/jest-cli/bin/jest.js
 PASS  __tests__/test.js
  ✓ fs Error (4ms)
  ✓ http error (13ms)
  ✓ querystring parse array (1ms)

Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        0.763s
Ran all test suites.

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@SimenB
Copy link
Member

SimenB commented Feb 14, 2019

I'm excited! Thanks for picking this up.

CI is failing, and there are some conflicts. Mind taking a look? 🙂

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

This PR is stale because it has been open 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Sep 8, 2022
@github-actions
Copy link

github-actions bot commented Oct 8, 2022

This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.

@github-actions github-actions bot closed this Oct 8, 2022
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

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 Nov 8, 2022
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.

4 participants