Skip to content

Commit

Permalink
chore: Check types with TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpoulter committed Mar 14, 2024
1 parent 66777b0 commit 4fdc272
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -30,6 +30,8 @@ jobs:
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
# - name: Build
# run: npm run build
- name: Lint
run: npm run lint
- name: Test
Expand Down
35 changes: 34 additions & 1 deletion package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -4,6 +4,7 @@
"description": "installs a `selenium-standalone` command line to install and start a standalone selenium server",
"main": "index.js",
"scripts": {
"build": "tsc -p .",
"start": "DEBUG=selenium-standalone:* ./bin/selenium-standalone install && DEBUG=selenium-standalone:* ./bin/selenium-standalone start",
"test": "export SELENIUM_VERSION=4.9.0&& ./bin/selenium-standalone install && nyc --silent mocha --timeout=60000 && export SELENIUM_VERSION=3.141.59&& ./bin/selenium-standalone install && nyc --silent mocha 'test/programmatic.js' --timeout=60000; nyc report --reporter=text --reporter=html",
"docker:build": "run-s docker:build:*",
Expand Down Expand Up @@ -59,6 +60,7 @@
"yauzl": "^2.10.0"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"chai": "4.3.10",
"doctoc": "2.2.1",
"eslint": "8.57.0",
Expand All @@ -71,6 +73,7 @@
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "2.8.8",
"release-it": "^17.0.1"
"release-it": "^17.0.1",
"typescript": "^5.4.2"
}
}
15 changes: 15 additions & 0 deletions tsconfig.json
@@ -0,0 +1,15 @@
{
"compilerOptions": {
// Do not output files
"noEmit": true,

// Check JavaScript
"checkJs": true
},

"include": [
"bin",
"lib",
"test"
]
}

0 comments on commit 4fdc272

Please sign in to comment.