Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed May 30, 2024
1 parent 956921f commit 66e5d3b
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 34 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 🧪 Test

on:
pull_request:
branches:
- 'master'

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
- name: 👨‍🔧 Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: 👨‍🔧 Setup package manager
run: corepack enable
- name: 🧪 Test
run: pnpm test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"build": "turbo run build",
"lint": "turbo run lint",
"test": "turbo run test",
"dev": "turbo run dev",
"infra:setup": "sh infra/minikube/setup.sh || bash infra/minikube/setup.sh || cmd.exe /C infra\\minikube\\setup.sh",
"infra:start": "minikube start -p mk-democracy"
Expand Down
2 changes: 1 addition & 1 deletion services/cron-jobs/crawler/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
// restoreMocks: false,

// The root directory that Jest should scan for tests and modules within
// rootDir: undefined,
rootDir: 'src',

// A list of paths to directories that Jest should use to search for files in
// roots: [
Expand Down
1 change: 0 additions & 1 deletion services/cron-jobs/crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"dev": "dotenv -e .env -e .env.local -- tsup src/import-procedures --watch --onSuccess 'node build/index.js'",
"build": "tsup-node",
"lint": "eslint .",
"test": "jest",
"start": "node ./build/index.js"
},
"dependencies": {
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions services/scrapers/scapacra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"build": "tsc",
"dev": "nodemon ./src/Example.ts",
"lint": "tslint --project tsconfig.json && pnpm typecheck",
"typecheck": "tsc --noEmit",
"test": "mocha -r ts-node/register test/**/*.test.ts"
"typecheck": "tsc --noEmit"
},
"bugs": {
"url": "https://github.com/demokratie-live/scapacra/issues"
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"lint": {
"dependsOn": ["^build"]
},
"test": {
"dependsOn": ["^build", "^test"]
},
"release:version": {}
}
}

0 comments on commit 66e5d3b

Please sign in to comment.