mirror of
https://github.com/ONLYOFFICE/DocSpace-client.git
synced 2025-04-18 13:44:09 +03:00
Tests: Added jest-html-reporter
This commit is contained in:
parent
22d0659307
commit
82f5fa4dbb
1
.gitignore
vendored
1
.gitignore
vendored
@ -33,3 +33,4 @@ licenses.csv
|
||||
.idea
|
||||
packages/runtime.json
|
||||
playwright-report
|
||||
common/tests/reports/tests-results.html
|
||||
|
6
.vscode/tasks.json
vendored
6
.vscode/tasks.json
vendored
@ -365,7 +365,7 @@
|
||||
{
|
||||
"label": "Test | Jest:translations",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder}/common/tests/ ; npm install ; npm run test:locales",
|
||||
"command": "cd ${workspaceFolder}/common/tests/ ; npm install ; npm run test:locales ; open reports/tests-results.html",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
@ -380,7 +380,7 @@
|
||||
{
|
||||
"label": "Test | Jest:images",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder}/common/tests/ ; npm install ; npm run test:images",
|
||||
"command": "cd ${workspaceFolder}/common/tests/ ; npm install ; npm run test:images ; open reports/tests-results.html",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
@ -395,7 +395,7 @@
|
||||
{
|
||||
"label": "Test | Jest:colors",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder}/common/tests/ ; npm install ; npm run test:colors",
|
||||
"command": "cd ${workspaceFolder}/common/tests/ ; npm install ; npm run test:colors ; open reports/tests-results.html",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
|
@ -14,4 +14,23 @@
|
||||
module.exports = {
|
||||
testEnvironment: "node",
|
||||
setupFilesAfterEnv: ["jest-expect-message"],
|
||||
verbose: true,
|
||||
reporters: [
|
||||
"default",
|
||||
[
|
||||
"./node_modules/jest-html-reporter",
|
||||
{
|
||||
pageTitle: "DocSpace Frontend tests report",
|
||||
outputPath: "<rootDir>/reports/tests-results.html",
|
||||
includeFailureMsg: true,
|
||||
includeConsoleLog: true,
|
||||
includeStackTrace: false,
|
||||
useCssFile: true,
|
||||
sort: "titleAsc",
|
||||
append: false,
|
||||
// styleOverridePath: "styles/defaultTheme.css",
|
||||
logo: "../../../public/images/logo/lightsmall.svg",
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
||||
|
73
common/tests/package-lock.json
generated
73
common/tests/package-lock.json
generated
@ -9,7 +9,8 @@
|
||||
"version": "1.0.0",
|
||||
"devDependencies": {
|
||||
"jest": "29.7.0",
|
||||
"jest-expect-message": "1.1.3"
|
||||
"jest-expect-message": "1.1.3",
|
||||
"jest-html-reporter": "3.10.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20",
|
||||
@ -1484,6 +1485,16 @@
|
||||
"node": ">= 8"
|
||||
}
|
||||
},
|
||||
"node_modules/dateformat": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.2.tgz",
|
||||
"integrity": "sha512-EelsCzH0gMC2YmXuMeaZ3c6md1sUJQxyb1XXc4xaisi/K6qKukqZhKPrEQyRkdNIncgYyLoDTReq0nNyuKerTg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
|
||||
@ -2259,6 +2270,28 @@
|
||||
"fsevents": "^2.3.2"
|
||||
}
|
||||
},
|
||||
"node_modules/jest-html-reporter": {
|
||||
"version": "3.10.2",
|
||||
"resolved": "https://registry.npmjs.org/jest-html-reporter/-/jest-html-reporter-3.10.2.tgz",
|
||||
"integrity": "sha512-XRBa5ylHPUQoo8aJXEEdKsTruieTdlPbRktMx9WG9evMTxzJEKGFMaw5x+sQxJuClWdNR72GGwbOaz+6HIlksA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jest/test-result": "^29.0.2",
|
||||
"@jest/types": "^29.0.2",
|
||||
"dateformat": "3.0.2",
|
||||
"mkdirp": "^1.0.3",
|
||||
"strip-ansi": "6.0.1",
|
||||
"xmlbuilder": "15.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.8.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"jest": "19.x - 29.x",
|
||||
"typescript": "^3.7.x || ^4.3.x || ^5.x"
|
||||
}
|
||||
},
|
||||
"node_modules/jest-leak-detector": {
|
||||
"version": "29.7.0",
|
||||
"resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz",
|
||||
@ -2753,6 +2786,19 @@
|
||||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/mkdirp": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
|
||||
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"mkdirp": "bin/cmd.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/ms": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
@ -3323,6 +3369,21 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.6.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz",
|
||||
"integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "6.19.8",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
|
||||
@ -3433,6 +3494,16 @@
|
||||
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/xmlbuilder": {
|
||||
"version": "15.0.0",
|
||||
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.0.0.tgz",
|
||||
"integrity": "sha512-KLu/G0DoWhkncQ9eHSI6s0/w+T4TM7rQaLhtCaL6tORv8jFlJPlnGumsgTcGfYeS1qZ/IHqrvDG7zJZ4d7e+nw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/y18n": {
|
||||
"version": "5.0.8",
|
||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
||||
|
@ -14,6 +14,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "29.7.0",
|
||||
"jest-expect-message": "1.1.3"
|
||||
"jest-expect-message": "1.1.3",
|
||||
"jest-html-reporter": "3.10.2"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user