Status: 🔨 In Progress
Source: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-diff
Version: v27.4.7
- ❌ Color formatting isn't supported.
- 🔨 Currently doesn't support any features that require
prettyFormat
plugins (e.g. React elements). -
CleanupSemantic.lua
is adapted from the Lua version ofdiff-match-patch
to resemble the upstreamcleanupSemantics.ts
instead of being a direct port of it.- Tests for it are added, which are not included in the upstream `jest-diff
- Changes to tests:
- Snapshots in
Diff.spec.lua
have their leading<g>
,<r>
,<d>
, and<y>
ANSI style codes manually removed. - Color formatting specific tests are omitted.
-
changeColor
is assigned to a function that imitateschalk.inverse
so we can testdiffStringsUnified
. -
Array[]
,Object{}
are changed toTable{}
.
- Snapshots in
src/types.ts
Package | Version | Status | Notes |
---|---|---|---|
chalk | 4.0.0 | ✔️ Ported | Lua-Chalk |
diff-sequences | 27.4.0 | ✔️ Ported | |
jest-get-type | 27.4.0 | ✔️ Ported | |
pretty-format | 27.4.6 | ✔️ Ported | Mostly complete, need plugins |