Skip to content

Commit

Permalink
Merge pull request #935 from myrotvorets/remove-mocha
Browse files Browse the repository at this point in the history
Replace mocha with the native test runner
  • Loading branch information
myrotvorets-team authored Sep 3, 2024
2 parents 431665a + 8821e9a commit 4a091f0
Show file tree
Hide file tree
Showing 11 changed files with 285 additions and 994 deletions.
8 changes: 3 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"parserOptions": {
"ecmaVersion": 2021,
"ecmaVersion": 2022,
"project": ["./tsconfig.json"]
},
"extends": [
"@myrotvorets/myrotvorets-ts",
"plugin:mocha/recommended"
"@myrotvorets/myrotvorets-ts"
],
"env": {
"node": true,
"mocha": true
"node": true
}
}
2 changes: 1 addition & 1 deletion .github/workflows/sonarscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
uses: myrotvorets/composite-actions/node-sonarscan@master
with:
sonar-token: ${{ secrets.SONAR_TOKEN }}
test-script: 'test:coverage'
test-script: 'test:sonarqube'

12 changes: 0 additions & 12 deletions .mocharc.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/writablebufferstream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class WritableBufferStream extends Writable {
if (Buffer.isBuffer(chunk)) {
buf = chunk;
} else if (chunk !== undefined && chunk !== null) {
// eslint-disable-next-line @typescript-eslint/no-base-to-string, sonarjs/no-base-to-string
// eslint-disable-next-line @typescript-eslint/no-base-to-string
buf = Buffer.from(`${chunk}`, encoding); // NOSONAR
}

Expand Down
Loading

0 comments on commit 4a091f0

Please sign in to comment.