Skip to content

Commit

Permalink
jest examples sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jul 9, 2024
1 parent 09f6200 commit 86f8507
Show file tree
Hide file tree
Showing 12 changed files with 25,331 additions and 7,097 deletions.
10 changes: 10 additions & 0 deletions examples/sqlite/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
};
10,470 changes: 8,299 additions & 2,171 deletions examples/sqlite/package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion examples/sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sqlite_example",
"scripts": {
"pretest": "ts-node --transpile-only --ignore=false test/pretest.ts",
"test": "ts-node --transpile-only --ignore=false test/test.ts"
"test": "jest"
},
"dependencies": {
"azle": "0.22.0",
Expand All @@ -12,6 +12,8 @@
"devDependencies": {
"@types/express": "^4.17.21",
"@types/sql.js": "^1.4.9",
"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 86f8507

Please sign in to comment.