Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for macOS key press simulation #13

Merged
merged 4 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- npm run test-style
- npm run test-types
- npm run test-unit
- npm run test-macos-key-press
exclude:
# The `test-style` script is platform-independent, so there is no
# value in executing it in multiple operating systems.
Expand All @@ -23,6 +24,10 @@ jobs:
# value in executing it in multiple operating systems.
- os: macos-14
test-command: npm run test-types
# The `test-macos-key-press` script exercises macOS platform code,
# making it inappropriate for Windows environments.
- os: windows-2022
test-command: npm run test-macos-key-press

steps:
- uses: actions/checkout@v4
Expand Down
81 changes: 77 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"scripts": {
"prettier": "prettier --write shared test",
"test": "npm run test-style && npm run test-types && npm run test-unit",
"test-macos-key-press": "mocha --ui tdd test/test-macos-key-press.js",
"test-style": "prettier --check shared test",
"test-types": "tsc -p tsconfig.json",
"test-unit": "mocha --ui tdd test/**/*.js"
"test-unit": "mocha --ui tdd test/test.js"
},
"author": "",
"license": "MIT",
Expand All @@ -20,6 +21,7 @@
"fs-extra": "^11.2.0",
"mocha": "^9.1.2",
"prettier": "^3.2.4",
"selenium-webdriver": "^4.1.0",
"typescript": "^5.3.3"
},
"dependencies": {
Expand Down
Loading
Loading