Skip to content

Commit

Permalink
DEV: Set up stop-only test
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhieb committed Oct 12, 2024
1 parent 1a260ec commit e9a12de
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Check for calls to .only() in tests
run: npm run stop-only

- name: Run tests
run: npm test
2 changes: 1 addition & 1 deletion index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe(`dlx2scription`, function() {

describe(`library`, function() {

it(`converts multiple utterances`, createDefaultTest(`multiple-utterances`))
it.only(`converts multiple utterances`, createDefaultTest(`multiple-utterances`))

})

Expand Down
241 changes: 240 additions & 1 deletion 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 @@ -21,6 +21,7 @@
"type": "module",
"scripts": {
"start": "node --test --test-only",
"stop-only": "stop-only --file index.test.js",
"test": "node --test"
},
"publishConfig": {
Expand All @@ -32,6 +33,7 @@
"@eslint/js": "^9.12.0",
"@stylistic/eslint-plugin-js": "^2.9.0",
"chai": "^5.1.1",
"eslint": "^9.12.0"
"eslint": "^9.12.0",
"stop-only": "^3.4.1"
}
}

0 comments on commit e9a12de

Please sign in to comment.