feat(filters): control logical groups external mach mode #39
Annotations
16 errors
test/index.test.ts > filtering tests > Array Length match mode:
test/index.test.ts#L37
AssertionError: expected { rows: [] } to deeply equal { rows: [ { id: 1, …(2) } ] }
- Expected
+ Received
Object {
- "rows": Array [
- Object {
- "id": 1,
- "name": "John",
- "skills": Array [
- "JavaScript",
- "TypeScript",
- "React",
- ],
- },
- ],
+ "rows": Array [],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - ALL objects in the array match ALL conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 1, …(2) }, …(2) ] } to deeply equal { rows: [ { id: 1, …(2) }, …(1) ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 1,
"name": "John",
"orders": Array [
Object {
"id": 1,
"total": 100,
},
Object {
"id": 2,
"total": 200,
},
],
},
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"total": 150,
},
Object {
"id": 4,
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - ALL objects in the array match SOME of the conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 1, …(2) }, …(2) ] } to deeply equal { rows: [ { id: 1, …(2) }, …(1) ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 1,
"name": "John",
"orders": Array [
Object {
"id": 1,
"status": "completed",
"total": 100,
},
Object {
"id": 2,
"status": "pending",
"total": 200,
},
],
},
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"status": "completed",
"total": 150,
},
Object {
"id": 4,
"status": "completed",
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "status": "pending",
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "status": "completed",
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - SOME objects in the array match ALL conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 2, …(2) }, …(1) ] } to deeply equal { rows: [ { id: 2, …(2) } ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"status": "completed",
"total": 150,
},
Object {
"id": 4,
"status": "completed",
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "status": "pending",
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "status": "completed",
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test (macos-latest)
Process completed with exit code 1.
|
test/index.test.ts > filtering tests > Array Length match mode:
test/index.test.ts#L37
AssertionError: expected { rows: [] } to deeply equal { rows: [ { id: 1, …(2) } ] }
- Expected
+ Received
Object {
- "rows": Array [
- Object {
- "id": 1,
- "name": "John",
- "skills": Array [
- "JavaScript",
- "TypeScript",
- "React",
- ],
- },
- ],
+ "rows": Array [],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - ALL objects in the array match ALL conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 1, …(2) }, …(2) ] } to deeply equal { rows: [ { id: 1, …(2) }, …(1) ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 1,
"name": "John",
"orders": Array [
Object {
"id": 1,
"total": 100,
},
Object {
"id": 2,
"total": 200,
},
],
},
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"total": 150,
},
Object {
"id": 4,
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - ALL objects in the array match SOME of the conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 1, …(2) }, …(2) ] } to deeply equal { rows: [ { id: 1, …(2) }, …(1) ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 1,
"name": "John",
"orders": Array [
Object {
"id": 1,
"status": "completed",
"total": 100,
},
Object {
"id": 2,
"status": "pending",
"total": 200,
},
],
},
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"status": "completed",
"total": 150,
},
Object {
"id": 4,
"status": "completed",
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "status": "pending",
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "status": "completed",
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - SOME objects in the array match ALL conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 2, …(2) }, …(1) ] } to deeply equal { rows: [ { id: 2, …(2) } ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"status": "completed",
"total": 150,
},
Object {
"id": 4,
"status": "completed",
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "status": "pending",
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "status": "completed",
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test (ubuntu-latest)
Process completed with exit code 1.
|
test/index.test.ts > filtering tests > Array Length match mode:
test/index.test.ts#L37
AssertionError: expected { rows: [] } to deeply equal { rows: [ { id: 1, …(2) } ] }
- Expected
+ Received
Object {
- "rows": Array [
- Object {
- "id": 1,
- "name": "John",
- "skills": Array [
- "JavaScript",
- "TypeScript",
- "React",
- ],
- },
- ],
+ "rows": Array [],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - ALL objects in the array match ALL conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 1, …(2) }, …(2) ] } to deeply equal { rows: [ { id: 1, …(2) }, …(1) ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 1,
"name": "John",
"orders": Array [
Object {
"id": 1,
"total": 100,
},
Object {
"id": 2,
"total": 200,
},
],
},
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"total": 150,
},
Object {
"id": 4,
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - ALL objects in the array match SOME of the conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 1, …(2) }, …(2) ] } to deeply equal { rows: [ { id: 1, …(2) }, …(1) ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 1,
"name": "John",
"orders": Array [
Object {
"id": 1,
"status": "completed",
"total": 100,
},
Object {
"id": 2,
"status": "pending",
"total": 200,
},
],
},
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"status": "completed",
"total": 150,
},
Object {
"id": 4,
"status": "completed",
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "status": "pending",
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "status": "completed",
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > filtering tests > Object Match - SOME objects in the array match ALL conditions:
test/index.test.ts#L37
AssertionError: expected { rows: [ { id: 2, …(2) }, …(1) ] } to deeply equal { rows: [ { id: 2, …(2) } ] }
- Expected
+ Received
Object {
"rows": Array [
Object {
"id": 2,
"name": "Jane",
"orders": Array [
Object {
"id": 3,
"status": "completed",
"total": 150,
},
Object {
"id": 4,
"status": "completed",
"total": 300,
},
],
},
+ Object {
+ "id": 3,
+ "name": "Bob",
+ "orders": Array [
+ Object {
+ "id": 5,
+ "status": "pending",
+ "total": 50,
+ },
+ Object {
+ "id": 6,
+ "status": "completed",
+ "total": 250,
+ },
+ ],
+ },
],
}
❯ test/index.test.ts:37:29
|
test/index.test.ts > performance check > query 1M rows - paginate + sort + search + filter in less than 50ms:
test/index.test.ts#L73
AssertionError: expected 51.735200000111945 to be less than 50
❯ test/index.test.ts:73:25
|
test (windows-latest)
Process completed with exit code 1.
|