Skip to content

Commit 73a9ffa

Browse files
committed
Revert "As request a Prettier with default configuration was applied to all code before push."
This reverts commit 8c525d4
1 parent 8c525d4 commit 73a9ffa

16 files changed

Lines changed: 234 additions & 233 deletions

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
- Using welcoming and inclusive language
12-
- Being respectful of differing viewpoints and experiences
13-
- Gracefully accepting constructive criticism
14-
- Focusing on what is best for the community
15-
- Showing empathy towards other community members
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
- Trolling, insulting/derogatory comments, and personal or political attacks
21-
- Public or private harassment
22-
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
- Other conduct which could reasonably be considered inappropriate in a professional setting
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
theme: jekyll-theme-minimal
1+
theme: jekyll-theme-minimal

e2e/test-project/index.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This is only template tests used for testing the
2+
* This is only template tests used for testing the
33
* implementation jest-html-reporter together with Jest
44
*/
55

@@ -9,8 +9,9 @@ describe("test-project", () => {
99
test("adds 1 + 2 to equal 3", () => {
1010
expect(add(1, 2)).toBe(3);
1111
});
12-
12+
1313
test("subtracts 5 - 3 to equal 2", () => {
1414
expect(subtract(5, 3)).toBe(2);
1515
});
16-
});
16+
})
17+

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import tseslint from "typescript-eslint";
66
export default tseslint.config(
77
eslint.configs.recommended,
88
tseslint.configs.strict,
9-
tseslint.configs.stylistic,
9+
tseslint.configs.stylistic
1010
);

package.json

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,81 @@
1-
{
2-
"name": "jest-html-reporter",
3-
"version": "4.1.0",
4-
"description": "Jest test results processor for generating a summary in HTML",
5-
"main": "dist/index.js",
6-
"unpkg": "dist/index.js",
7-
"files": [
8-
"dist",
9-
"style"
10-
],
11-
"scripts": {
12-
"tsc": "tsc",
13-
"lint": "eslint src/",
14-
"jest": "jest --no-cache --config=jest.config.json",
15-
"test": "npm run lint && npm run jest",
16-
"test:watch": "npm run jest -- --watch --no-coverage",
17-
"bundle": "rollup -c",
18-
"build": "npm run bundle",
19-
"prepare": "npm run bundle"
20-
},
21-
"repository": {
22-
"type": "git",
23-
"url": "git+https://github.com/Hargne/jest-html-reporter.git"
24-
},
25-
"keywords": [
26-
"jest",
27-
"html",
28-
"reporter",
29-
"report",
30-
"plugin"
31-
],
32-
"author": "Johan Hargne",
33-
"license": "MIT",
34-
"bugs": {
35-
"url": "https://github.com/Hargne/jest-html-reporter/issues"
36-
},
37-
"homepage": "https://github.com/Hargne/jest-html-reporter#readme",
38-
"engines": {
39-
"node": ">=14.0.0"
40-
},
41-
"dependencies": {
42-
"@jest/reporters": "^29.7.0",
43-
"@jest/test-result": "^29.7.0",
44-
"@jest/types": "^29.6.3",
45-
"dateformat": "3.0.2",
46-
"mkdirp": "^1.0.3",
47-
"strip-ansi": "6.0.1",
48-
"xmlbuilder": "15.0.0"
49-
},
50-
"peerDependencies": {
51-
"jest": "19.x - 29.x",
52-
"typescript": "^3.7.x || ^4.3.x || ^5.x"
53-
},
54-
"devDependencies": {
55-
"@eslint/js": "^9.19.0",
56-
"@jest/console": "^29.7.0",
57-
"@rollup/plugin-commonjs": "^28.0.2",
58-
"@rollup/plugin-node-resolve": "^16.0.0",
59-
"@rollup/plugin-terser": "^0.4.4",
60-
"@rollup/plugin-typescript": "^12.1.2",
61-
"@types/dateformat": "^3.0.X",
62-
"@types/jest": "^29.5.14",
63-
"@types/mkdirp": "1.0.2",
64-
"@types/node": "^22.13.0",
65-
"@types/sinon": "9.0.11",
66-
"eslint": "^9.19.0",
67-
"jest": "^29.7.0",
68-
"jest-environment-jsdom": "^29.7.0",
69-
"rollup": "^4.34.1",
70-
"sinon": "^9.0.1",
71-
"ts-jest": "^29.0.0",
72-
"tslib": "^2.8.1",
73-
"tslint-config-prettier": "^1.18.0",
74-
"typescript": "^5.7.3",
75-
"typescript-eslint": "^8.22.0"
76-
},
77-
"browserslist": [
78-
"since 2017-06"
79-
],
80-
"packageManager": "yarn@1.22.19"
81-
}
1+
{
2+
"name": "jest-html-reporter",
3+
"version": "4.1.0",
4+
"description": "Jest test results processor for generating a summary in HTML",
5+
"main": "dist/index.js",
6+
"unpkg": "dist/index.js",
7+
"files": [
8+
"dist",
9+
"style"
10+
],
11+
"scripts": {
12+
"tsc": "tsc",
13+
"lint": "eslint src/",
14+
"jest": "jest --no-cache --config=jest.config.json",
15+
"test": "npm run lint && npm run jest",
16+
"test:watch": "npm run jest -- --watch --no-coverage",
17+
"bundle": "rollup -c",
18+
"build": "npm run bundle",
19+
"prepare": "npm run bundle"
20+
},
21+
"repository": {
22+
"type": "git",
23+
"url": "git+https://github.com/Hargne/jest-html-reporter.git"
24+
},
25+
"keywords": [
26+
"jest",
27+
"html",
28+
"reporter",
29+
"report",
30+
"plugin"
31+
],
32+
"author": "Johan Hargne",
33+
"license": "MIT",
34+
"bugs": {
35+
"url": "https://github.com/Hargne/jest-html-reporter/issues"
36+
},
37+
"homepage": "https://github.com/Hargne/jest-html-reporter#readme",
38+
"engines": {
39+
"node": ">=14.0.0"
40+
},
41+
"dependencies": {
42+
"@jest/reporters": "^29.7.0",
43+
"@jest/test-result": "^29.7.0",
44+
"@jest/types": "^29.6.3",
45+
"dateformat": "3.0.2",
46+
"mkdirp": "^1.0.3",
47+
"strip-ansi": "6.0.1",
48+
"xmlbuilder": "15.0.0"
49+
},
50+
"peerDependencies": {
51+
"jest": "19.x - 29.x",
52+
"typescript": "^3.7.x || ^4.3.x || ^5.x"
53+
},
54+
"devDependencies": {
55+
"@eslint/js": "^9.19.0",
56+
"@jest/console": "^29.7.0",
57+
"@rollup/plugin-commonjs": "^28.0.2",
58+
"@rollup/plugin-node-resolve": "^16.0.0",
59+
"@rollup/plugin-terser": "^0.4.4",
60+
"@rollup/plugin-typescript": "^12.1.2",
61+
"@types/dateformat": "^3.0.X",
62+
"@types/jest": "^29.5.14",
63+
"@types/mkdirp": "1.0.2",
64+
"@types/node": "^22.13.0",
65+
"@types/sinon": "9.0.11",
66+
"eslint": "^9.19.0",
67+
"jest": "^29.7.0",
68+
"jest-environment-jsdom": "^29.7.0",
69+
"rollup": "^4.34.1",
70+
"sinon": "^9.0.1",
71+
"ts-jest": "^29.0.0",
72+
"tslib": "^2.8.1",
73+
"tslint-config-prettier": "^1.18.0",
74+
"typescript": "^5.7.3",
75+
"typescript-eslint": "^8.22.0"
76+
},
77+
"browserslist": [
78+
"since 2017-06"
79+
],
80+
"packageManager": "yarn@1.22.19"
81+
}

src/__mock__/mockAggregatedResultSingle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ export const mockAggregatedResultSingle: AggregatedResult = {
7272
},
7373
],
7474
};
75-
export default mockAggregatedResultSingle;
75+
export default mockAggregatedResultSingle;

src/__mock__/mockJestGlobalConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ export const mockJestGlobalConfig: Config.GlobalConfig = {
6262
watchPlugins: undefined,
6363
watchman: true,
6464
};
65-
export default mockJestGlobalConfig;
65+
export default mockJestGlobalConfig;

src/extractConfiguration.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ describe("Config Utilities", () => {
1414
describe("toEnvVar", () => {
1515
it("should convert camelCase to uppercase with underscores and prepend with JEST_HTML_REPORTER_", () => {
1616
expect(toEnvVar("statusIgnoreFilter")).toBe(
17-
"JEST_HTML_REPORTER_STATUS_IGNORE_FILTER",
17+
"JEST_HTML_REPORTER_STATUS_IGNORE_FILTER"
1818
);
1919
expect(toEnvVar("executionTimeWarningThreshold")).toBe(
20-
"JEST_HTML_REPORTER_EXECUTION_TIME_WARNING_THRESHOLD",
20+
"JEST_HTML_REPORTER_EXECUTION_TIME_WARNING_THRESHOLD"
2121
);
2222
});
2323
});
@@ -27,7 +27,7 @@ describe("Config Utilities", () => {
2727
const mockConfig = { append: true };
2828
(fs.existsSync as jest.Mock).mockReturnValue(true);
2929
(fs.readFileSync as jest.Mock).mockReturnValue(
30-
JSON.stringify(mockConfig),
30+
JSON.stringify(mockConfig)
3131
);
3232

3333
const result = extractConfiguration({});

src/extractConfiguration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function readJsonFile(filePath: string) {
5656
// Type conversion functions
5757
const typeParsers: {
5858
[key in keyof JestHTMLReporterConfiguration]: (
59-
value: unknown,
59+
value: unknown
6060
) => string | number | boolean | unknown[] | undefined;
6161
} = {
6262
additionalInformation: parseArray(isAdditionalInformationEntry),
@@ -84,7 +84,7 @@ const typeParsers: {
8484

8585
// Function to clean & validate configuration input
8686
export function sanitizeConfig(
87-
input: unknown,
87+
input: unknown
8888
): Partial<JestHTMLReporterConfiguration> {
8989
if (typeof input !== "object" || input === null) {
9090
return {};
@@ -118,7 +118,7 @@ export default function (cliConfig: unknown): JestHTMLReporterConfiguration {
118118

119119
// Read from JSON files
120120
const customJsonConfig = readJsonFile(
121-
path.join(process.cwd(), "jesthtmlreporter.config.json"),
121+
path.join(process.cwd(), "jesthtmlreporter.config.json")
122122
);
123123
const packageJsonConfig =
124124
readJsonFile(path.join(process.cwd(), "package.json"))[

0 commit comments

Comments
 (0)