The executeTest function require tmp file by ts-node. So if there is import clause in typescript file it won't working!
import { minus } from "./utils";
/**
* @expect [2, 4] toBe 6
* @expect [2, 2] toBeGreaterThan 3
* @expect [2, 2] toBeLessThan 3
* @expect [2, 22] toEqual 24
*/
export function sum(a: number, b: number) {
return minus(a, b) + b * 2;
}
The
executeTestfunction require tmp file byts-node. So if there isimportclause in typescript file it won't working!