Init Jest

This commit is contained in:
Tangent Wantwight 2023-08-06 02:38:22 -04:00
parent e9fbf137c7
commit 62df86acb4
2 changed files with 10 additions and 1 deletions

5
jest.config.js Normal file
View File

@ -0,0 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
preset: "ts-jest/presets/default-esm",
testEnvironment: "node",
};

View File

@ -1,12 +1,16 @@
{
"type": "module",
"scripts": {
"check": "tsc --noEmit",
"serve": "esbuild src/3x5.ts --bundle --format=iife --outfile=bundle.js --sourcemap --servedir=.",
"build": "esbuild src/3x5.ts --bundle --format=iife --outfile=bundle.js"
"build": "esbuild src/3x5.ts --bundle --format=iife --outfile=bundle.js",
"test": "node --experimental-vm-modules ./node_modules/.bin/jest"
},
"devDependencies": {
"@types/jest": "^29.5.3",
"esbuild": "^0.18.17",
"jest": "^29.6.2",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
}
}