Skip to content

Commit

Permalink
chore: raise mocha timeout
Browse files Browse the repository at this point in the history
Should allow tests to run without errors on low CPU devices (e.g.
Raspberry Pi 4).

Also adjusts the Projectionist Vim Dispatch command to run tests without
colors.
  • Loading branch information
djwhitt committed Aug 29, 2023
1 parent b42851e commit 774cc91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ts-node/register/transpile-only",
"source-map-support/register.js"
],
"timeout": "5000",
"timeout": "15000",
"parallel": false,
"recursive": true
}
2 changes: 1 addition & 1 deletion .projections.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
},
"src/*.test.ts": {
"alternate": "src/{}.ts",
"dispatch": "yarn test -c"
"dispatch": "npx mocha --no-warnings --color=false"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"db:migrate": "ts-node-esm ./src/migrate.ts",
"db:dump-test-schemas": "./test/dump-test-schemas",
"test": "mocha --no-warnings",
"test:ci": "npx c8 -r lcov mocha --no-warnings --timeout 10000 -R mocha-multi --reporter-options spec=-,json=test-results.json",
"test:ci": "npx c8 -r lcov mocha --no-warnings -R mocha-multi --reporter-options spec=-,json=test-results.json",
"test:coverage": "npx c8 -r text -r html mocha --no-warnings",
"lint:check": "eslint src test",
"lint:fix": "eslint --fix src test"
Expand Down

0 comments on commit 774cc91

Please sign in to comment.