@jsdotlua/jest-diff

3.6.1-rc.2 • Public • Published

jest-diff

Status: 🔨 In Progress

Source: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-diff

Version: v27.4.7


✏️ Notes

  • ❌ 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 of diff-match-patch to resemble the upstream cleanupSemantics.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 imitates chalk.inverse so we can test diffStringsUnified.
    • Array[], Object{} are changed to Table{}.

❌ Excluded

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

/@jsdotlua/jest-diff/

    Package Sidebar

    Install

    npm i @jsdotlua/jest-diff

    Weekly Downloads

    19

    Version

    3.6.1-rc.2

    License

    MIT

    Unpacked Size

    62.8 kB

    Total Files

    13

    Last publish

    Collaborators

    • brxst
    • jeparlefrancais