MCPcopy Index your code
hub / github.com/immerjs/immer / createTestData

Function createTestData

__tests__/base.js:629–638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

627 describe("non-mutating array methods", () => {
628 // Test data factory
629 const createTestData = () => ({
630 items: [
631 {id: 1, value: 10, nested: {count: 1}},
632 {id: 2, value: 20, nested: {count: 2}},
633 {id: 3, value: 30, nested: {count: 3}},
634 {id: 4, value: 40, nested: {count: 4}},
635 {id: 5, value: 50, nested: {count: 5}}
636 ],
637 other: {data: "test"}
638 })
639
640 describe("filter()", () => {
641 test("returns new array with filtered items", () => {

Callers 1

runBaseTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…