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

[NEW EXAMPLE] Jest - Diff #52

Closed
ainzzorl opened this issue Aug 24, 2021 · 0 comments
Closed

[NEW EXAMPLE] Jest - Diff #52

ainzzorl opened this issue Aug 24, 2021 · 0 comments
Labels
new example New example proposal

Comments

@ainzzorl
Copy link
Owner

General

Description

"Jest is a delightful JavaScript Testing Framework with a focus on simplicity.

When the actual output doesn't match the expectation, Jest "displays differences clearly so people can review changes confidently."

E.g. (borrowed from README.md):

const a = ['delete', 'common', 'changed from'];
const b = ['common', 'changed to', 'insert'];

const difference = diff(a, b);
- Expected
+ Received

  Array [
-   "delete",
    "common",
-   "changed from",
+   "changed to",
+   "insert",
  ]

Links

https://github.com/facebook/jest/tree/master/packages/jest-diff

What makes it interesting

  • Highly reusable.
  • Interesting functionality.
  • Standalone, requires no context.

Related work

No

Other

No.

@ainzzorl ainzzorl added the new example New example proposal label Aug 24, 2021
ainzzorl added a commit that referenced this issue Aug 31, 2021
ainzzorl added a commit that referenced this issue Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new example New example proposal
Projects
None yet
Development

No branches or pull requests

1 participant