Skip to content

Commit

Permalink
Merge pull request #167 from FalkorDB/jestCI-setup
Browse files Browse the repository at this point in the history
Jest ci setup
  • Loading branch information
AviAvni authored Oct 7, 2024
2 parents 75e08fe + 7bc9261 commit 58d0f8b
Show file tree
Hide file tree
Showing 7 changed files with 5,028 additions and 2,227 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
strategy:
matrix:
node-version: [18.x, 20.x]

services:
falkordb:
image: falkordb/falkordb:latest
ports:
- 6379:6379

steps:
- uses: actions/checkout@v4
Expand All @@ -27,7 +33,12 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
# - run: npm test

- name: Run tests
run: npx jest
env:
FALKORDB_HOST: localhost
FALKORDB_PORT: 6379

- name: Notify Google Chat
id: test-action
Expand Down
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>/tests"],
transform: { "^.+\\.ts$": "ts-jest"},
testRegex: "((\\.|/)(test|spec))\\.ts$",
moduleFileExtensions: ["ts", "js", "json", "node"],
setupFilesAfterEnv: ["<rootDir>/tests/dbConnection.ts"]
};
Loading

0 comments on commit 58d0f8b

Please sign in to comment.