Skip to content

Commit

Permalink
run only db jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkPark committed Sep 21, 2021
1 parent d33a339 commit dc50c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dev": "nodemon --watch ./src --ext js --trace-warnings --require dotenv/config src/index.js",
"start": "NODE_ENV=production node ./src/index.js",
"lint": "eslint ./src ./tests",
"jest": "NODE_OPTIONS='--experimental-vm-modules --require dotenv/config' FORTNOTES_HTTP_PORT=0 FORTNOTES_DB_STORAGE=:memory: npx jest --runInBand --config tests/config.js",
"jest": "NODE_OPTIONS='--experimental-vm-modules --require dotenv/config' FORTNOTES_HTTP_PORT=0 FORTNOTES_DB_STORAGE=:memory: npx jest --config tests/config.js",
"test": "npm run lint && npm run jest",
"erd": "node src/utils/erd.js"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export default {
verbose: true,
testMatch: ['**/tests/specs/*.js'],
testMatch: ['**/tests/specs/db.js'],
globalSetup: '<rootDir>/setup.js',
globalTeardown: '<rootDir>/teardown.js',
transform: {},
Expand Down

0 comments on commit dc50c7f

Please sign in to comment.