Skip to content

Commit ddf7b43

Browse files
committed
test: Run mocha tests with Electron
Note: (global) installation of Electron is required
1 parent f750205 commit ddf7b43

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"chai": "^4.3.7",
3838
"deasync": "^0.1.28",
3939
"downlevel-dts": "^0.11.0",
40+
"electron-mocha": "^11.0.2",
4041
"eslint-config-atomic": "^1.18.1",
4142
"eslint-plugin-prettier": "^4.2.1",
4243
"fs-extra": "^10.1.0",
@@ -93,6 +94,8 @@
9394
"build.debug": "run-s build.js build.native.debug",
9495
"test": "run-s build && mocha",
9596
"test.skip_gc_tests": "run-s build.debug && cross-env SKIP_GC_TESTS=true mocha",
97+
"test.electron.main": "run-s build && electron-mocha",
98+
"test.electron.renderer": "run-s build && electron-mocha --renderer",
9699
"lint.clang-format": "clang-format -i -style=file ./src/*.cc ./src/*.h ./src/util/*.h",
97100
"lint-test.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
98101
"lint.eslint": "pnpm run lint-test.eslint --fix",

pnpm-lock.yaml

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)