Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 746 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 746 Bytes

Typescript

Start

First install npm environment at root, recommend using npm v10.7.0 and node v20.15.1

npm install

change problem sentence const PROBLEM_ID: string = "${}"; import {Solve} from "../problems/problems_${}/solution"; in test.ts, and try at root:

npm test --alwaysStrict --strictBindCallApply --strictFunctionTypes --target ES2022 typescript/test.ts

or if you want to run more than one questions, change problem and problem folder const PROBLEMS: string[][] = [["1", "problems"], ["2", "problems"]]; in problems.test.ts, and try:

npm test --alwaysStrict --strictBindCallApply --strictFunctionTypes --target ES2022 typescript/problems.test.ts