Skip to content

Commit

Permalink
chore: move mocha config to .mocharc.yml to package.json is cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Oct 12, 2023
1 parent ae67215 commit 7d9c600
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
jobs: 1
package: './package.json'
parallel: false
exit: true
recursive: true
require: 'jsdom-global/register'
sort: false
spec:
- './ts/test/**/*_test.js' # the positional arguments!
timeout: 1000
watch: false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"lint-full": "yarn format-full && eslint .",
"format-full": "prettier --list-different --write \"*.{css,js,json,scss,ts,tsx}\" \"./**/*.{css,js,json,scss,ts,tsx}\"",
"start-prod-test": "cross-env NODE_ENV=production NODE_APP_INSTANCE=$MULTI electron .",
"test": "mocha -r jsdom-global/register --recursive --exit --timeout 10000 \"./ts/test/**/*_test.js\"",
"test": "mocha",
"build-release": "run-script-os",
"build-release-non-linux": "yarn build-everything && cross-env SIGNAL_ENV=production electron-builder --config.extraMetadata.environment=production --publish=never --config.directories.output=release",
"build-release:win32": "yarn build-release-non-linux",
Expand Down

0 comments on commit 7d9c600

Please sign in to comment.