-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4568681
commit c2cde65
Showing
30 changed files
with
1,959 additions
and
3,976 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extension": [".mts"], | ||
"reporter": ["text", "lcov"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"project": ["./tsconfig.json"] | ||
"project": ["./tsconfig.json"], | ||
"sourceType": "module" | ||
}, | ||
"extends": [ | ||
"@myrotvorets/myrotvorets-ts" | ||
], | ||
"env": { | ||
"node": true, | ||
"jest": true | ||
"es2022": true, | ||
"mocha": true, | ||
"node": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** @type {import('mocha').MochaOptions} */ | ||
module.exports = { | ||
recursive: true, | ||
spec: ['test/**/*.test.mts'], | ||
'node-option': ['loader=ts-node/esm', 'no-warnings'], | ||
require: 'mocha.setup.mjs', | ||
reporter: 'mocha-multi', | ||
'reporter-option': [ | ||
'spec=-', | ||
process.env.GITHUB_ACTIONS === 'true' ? 'mocha-reporter-gha=-' : null, | ||
process.env.SONARSCANNER === 'true' ? 'mocha-reporter-sonarqube=test-report.xml' : null, | ||
].filter(Boolean), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'mocha'; | ||
import { use } from 'chai'; | ||
import chaiAsPromised from 'chai-as-promised'; | ||
import { reset } from 'testdouble'; | ||
|
||
use(chaiAsPromised); | ||
|
||
/** @type {import('mocha').RootHookObject} */ | ||
export const mochaHooks = { | ||
/** @returns {void} */ | ||
afterEach() { | ||
reset(); | ||
}, | ||
}; |
Oops, something went wrong.