add test infra and a basic record integration test

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent f4ded6b6d1
commit 5bbc29ef1a
6 changed files with 157 additions and 2 deletions

26
test.d.ts vendored Normal file
View File

@@ -0,0 +1,26 @@
declare module 'rollup-plugin-typescript' {
function typescript(): any;
export = typescript;
}
declare module 'rollup-plugin-node-resolve' {
function resolve(): any;
export = resolve;
}
declare module 'jest-snapshot' {
export class SnapshotState {
constructor(testFile: string, options: any);
save(): any;
}
type matchResult = {
pass: boolean;
report(): string;
};
export function toMatchSnapshot(
received: any,
propertyMatchers?: any,
testName?: string,
): matchResult;
}