forked from pola-rs/nodejs-polars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.d.ts
26 lines (25 loc) · 784 Bytes
/
jest.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import {DataFrame} from "@polars/dataframe";
import {Series} from "@polars/series";
declare global {
namespace jest {
interface Matchers<R> {
toSeriesEqual(b: Series<any>): R;
toSeriesStrictEqual(b: Series<any>): R;
toFrameEqual(b: DataFrame, nullEqual?: boolean): R;
/**
* Compares two DataFrames, including the dtypes
*
* @example
* ```
* > df = pl.Dataframe([pl.Series("int32": [1,2], pl.Int32)])
* > other = pl.Dataframe([pl.Series("int32": [1,2], pl.UInt32)])
*
* > expect(df).toFrameEqual(other) // passes
* > expect(df).toFrameStrictEqual(other) // fails
* ```
*/
toFrameStrictEqual(b: DataFrame): R;
toFrameEqualIgnoringOrder(b: DataFrame): R;
}
}
}