Skip to content

Commit c7393b0

Browse files
feat: add Jest configuration for testing environment and reporting
1 parent 135aec1 commit c7393b0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

jest.js.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
testEnvironment: "node",
3+
testMatch: ["**/test/**/*.js"],
4+
testPathIgnorePatterns: [
5+
"/node_modules/",
6+
"/test/index.js",
7+
"/test/config.js",
8+
"/test/sync_config.js",
9+
"/test/.*/utils.js",
10+
"/test/sync/",
11+
],
12+
reporters: ["default", ["jest-html-reporters",
13+
{
14+
"filename": "tap-html.html",
15+
"expand": true,
16+
"inlineSource": true,
17+
"includeFailureMsg": true, // Includes error messages in JSON
18+
"includeConsoleLog": true
19+
}
20+
]],
21+
};

0 commit comments

Comments
 (0)