Skip to content

Commit

Permalink
jest examples n
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jul 9, 2024
1 parent 9f7b223 commit 5085bf9
Show file tree
Hide file tree
Showing 16 changed files with 24,987 additions and 6,220 deletions.
10 changes: 10 additions & 0 deletions examples/nest/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.js$': 'ts-jest'
},
transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed
};
6,737 changes: 5,085 additions & 1,652 deletions examples/nest/package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion examples/nest/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scripts": {
"pretest": "ts-node --transpile-only --ignore=false test/pretest.ts",
"test": "ts-node --transpile-only --ignore=false test/test.ts"
"test": "jest"
},
"dependencies": {
"@nestjs/common": "^10.3.8",
Expand All @@ -12,6 +12,8 @@
},
"devDependencies": {
"@types/express": "^4.17.21",
"jest": "^29.7.0",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
Expand Down
Loading

0 comments on commit 5085bf9

Please sign in to comment.