CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-jest-each

Parameterised tests for Jest that enable running the same test multiple times with different data sets using arrays or tagged template literals

85

1.10x
Overview
Eval results
Files

task.mdevals/scenario-10/

Data Validator Test Suite

A test suite that validates equality checking behavior for different data types and object structures.

Capabilities

Primitive Value Comparison

  • Comparing number 42 with 42 passes equality check @test
  • Comparing string "hello" with "hello" passes equality check @test
  • Comparing boolean true with true passes equality check @test

Object Value Comparison

  • Two separate object instances {a: 1, b: 2} with identical properties pass value equality check but fail reference equality check @test
  • Two arrays [1, 2, 3] that are separate instances with same elements pass value equality check @test

Nested Structure Comparison

  • Nested objects {user: {name: "Alice", age: 30}} with identical structure pass deep equality check @test
  • Objects {a: 1, b: undefined} and {a: 1} pass regular equality but fail strict equality check @test

Implementation

@generates

API

// No implementation needed - this is a test-only suite
// Tests should be written to validate equality checking behavior

Dependencies { .dependencies }

jest { .dependency }

Provides testing framework with equality matchers for validating object comparisons.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/npm-jest-each

tile.json