Skip to content

Commit

Permalink
feat: use ts-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Jnig committed Apr 1, 2023
1 parent bc53230 commit 344e420
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
5 changes: 5 additions & 0 deletions playground/template-prisma/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
11 changes: 3 additions & 8 deletions playground/template-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"build": "flux build --typecheck",
"dev": "flux start --watch --sdk",
"dev:typecheck": "flux start --watch --typecheck",
"debug": "flux start --watch --sdk --debug",
"debug": "flux start --watch --sdk --debug",
"sdk": "flux sdk",
"jest": "jest",
"test": "jest",
"lint": "eslint src/",
"prisma": "prisma"
},
Expand All @@ -32,17 +32,12 @@
"@typescript-eslint/parser": "^5.55.0",
"axios": "^1.3.4",
"esbuild": "^0.17.12",
"esbuild-jest": "^0.5.0",
"eslint": "^8.36.0",
"fastify-flux-cli": "*",
"jest": "^29.5.0",
"pino-pretty": "^10.0.0",
"prisma": "^4.11.0",
"ts-jest": "^29.0.5",
"typescript": "5.0.3"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "esbuild-jest"
}
}
}
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 344e420

Please sign in to comment.