Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ module.exports = {
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['json', 'lcov', 'text', 'clover'],
testPathIgnorePatterns: ['/node_modules/', '/allure-results/'], // Add this line to ignore the allure-results directory
};
13 changes: 13 additions & 0 deletions jest.local.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const os = require("os");

module.exports = {
preset: 'ts-jest',
testEnvironment: "node", // Change to standard node environment
reporters: [
"default", // default jest reporter
['jest-html-reporter', { outputPath: 'local_test/jest.html' }], // jest html reporter
],
collectCoverage: true,
coverageDirectory: 'local_test/coverage',
coverageReporters: ['json', 'lcov', 'text', 'clover'],
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"scripts": {
"test": "./run-tests.sh",
"test:github": "./run-tests-github.sh"
"test:github": "./run-tests-github.sh",
"test:local": "jest --config jest.local.config.ts"
},
"devDependencies": {
"@types/jest": "^29.5.14",
Expand Down
2 changes: 1 addition & 1 deletion run-tests-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "[INFO] Timezone after change: $(date +%Z)"

# Run Jest tests
echo "[INFO] Running Jest tests"
npx jest
jest

# Generate Allure report
echo "[INFO] Generating Allure report"
Expand Down
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "[INFO] Timezone after change: $(date +%Z)"

# Run Jest tests
echo "[INFO] Running Jest tests"
npx jest
jest

# Generate Allure report
echo "[INFO] Generating Allure report"
Expand Down
Loading