diff --git a/.github/workflows/test-server.yml b/.github/workflows/test-server.yml index 8357118b..feaff4f4 100644 --- a/.github/workflows/test-server.yml +++ b/.github/workflows/test-server.yml @@ -110,7 +110,7 @@ jobs: run: pnpx wait-on tcp:3002 -t 15s - name: Run snippet tests run: | - npm run test:snips -- scrape.test.ts + npm run test:snips working-directory: ./apps/api - name: Kill instances if: always() diff --git a/apps/api/package.json b/apps/api/package.json index 9866c3bc..5a8547db 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -15,7 +15,7 @@ "test:local-no-auth": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false --testPathIgnorePatterns='src/__tests__/e2e_withAuth/*'", "test:full": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false --testPathIgnorePatterns='(src/__tests__/e2e_noAuth|src/__tests__/e2e_withAuth)'", "test:prod": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false --testPathIgnorePatterns='(src/__tests__/e2e_noAuth|src/__tests__/e2e_full_withAuth|src/scraper/scrapeURL)'", - "test:snips": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false src/__tests__/snips/*.test.ts", + "test:snips": "npx jest --detectOpenHandles --forceExit --openHandlesTimeout=120000 --watchAll=false src/__tests__/snips/scrape.test.ts", "workers": "nodemon --exec ts-node src/services/queue-worker.ts", "worker:production": "node dist/src/services/queue-worker.js", "index-worker": "nodemon --exec ts-node src/services/indexing/index-worker.ts",