{"id":"eyycheev/jest-diff","name":"jest-diff","scope":"eyycheev","platform":"roblox","description":"Mirrored from the Wally registry.","version":"3.14.0-rbx.2","latest":"3.14.0-rbx.2","versions":["3.14.0-rbx.0","3.14.0-rbx.1","3.14.0-rbx.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":["The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{"eyycheev/chalk-lua":{"version":"^3.14.0-rbx.2","alias":"ChalkLua"},"eyycheev/diff-sequences":{"version":"^3.14.0-rbx.2","alias":"DiffSequences"},"eyycheev/jest-get-type":{"version":"^3.14.0-rbx.2","alias":"JestGetType"},"eyycheev/jest-types":{"version":"^3.14.0-rbx.2","alias":"JestTypes"},"jsdotlua/luau-polyfill":{"version":"^1.2.7","alias":"LuauPolyfill"},"eyycheev/pretty-format":{"version":"^3.14.0-rbx.2","alias":"PrettyFormat"}},"integrity":"3d78d60069cb6acb33150a92541179b380b3f45dd7338b888402f6106a94e749","likes":0,"downloads":0,"install":"forest install eyycheev/jest-diff","url":"https://forest.dev/p/roblox/eyycheev/jest-diff","files":"https://api.forest.dev/ai/package/roblox/eyycheev/jest-diff/files","readme":"# jest-diff\n\nUpstream: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-diff\n\nDisplay differences clearly so people can review changes confidently.\n\nThe `diff` named export serializes **values**, compares them line-by-line, and returns a string which includes comparison lines.\n\nTwo named exports compare **strings** character-by-character:\n\n- `diffStringsUnified` returns a string.\n- `diffStringsRaw` returns an array of `Diff` objects.\n\nThree named exports compare **arrays of strings** line-by-line:\n\n- `diffLinesUnified` and `diffLinesUnified2` return a string.\n- `diffLinesRaw` returns an array of `Diff` objects.\n\n---\n\n### :pencil2: Notes\n* `CleanupSemantic.lua` is adapted from the Lua version of [`diff-match-patch`](https://github.com/google/diff-match-patch/blob/master/lua/diff_match_patch.lua) to resemble the upstream [`cleanupSemantics.ts`](https://github.com/facebook/jest/blob/v27.4.7/packages/jest-diff/src/cleanupSemantic.ts) instead of being a direct port of it.\n    * Tests for it are added, which are not included in the upstream `jest-diff\n* Changes to tests:\n    * Snapshots in `Diff.spec.lua` have their leading `<g>`, `<r>`, `<d>`, and `<y>` ANSI style codes manually removed.\n    * Color formatting specific tests are omitted.\n    * `changeColor` is assigned to a function that imitates `chalk.inverse` so we can test `diffStringsUnified`.\n    * `Array[]`, `Object{}` are changed to `Table{}`.\n","readmeTruncated":false}