Switch to vitest

This commit is contained in:
Jeremy Penner 2025-01-19 20:41:05 -05:00
parent 3be5e7fe78
commit 87b1ed0d22
5 changed files with 669 additions and 2365 deletions

2
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,2 @@
{
}

View file

@ -1,7 +0,0 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
testEnvironment: "node",
transform: {
"^.+.tsx?$": ["ts-jest",{}],
},
};

View file

@ -7,10 +7,8 @@
},
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387",
"devDependencies": {
"@jest/globals": "^29.7.0",
"@tsconfig/recommended": "^1.0.8",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"typescript": "^5.7.2"
"typescript": "^5.7.2",
"vitest": "^3.0.4"
}
}

3017
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
import {test, expect} from '@jest/globals';
import {test, expect} from 'vitest';
import { freeze, getHash } from '../db/hash';
import { memo } from '../db/querydb';
import { consume, contentsFromText, getLocation } from '../db/parse';