Skip to content

Commit

Permalink
Update tests config
Browse files Browse the repository at this point in the history
  • Loading branch information
AmsterGet committed Jul 15, 2024
1 parent 89faea8 commit 1224303
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 16 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright 2024 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module.exports = {
moduleFileExtensions: ['js'],
testRegex: '/__tests__/.*\\.spec.(js)$',
collectCoverageFrom: [

Check failure on line 20 in jest.config.js

View workflow job for this annotation

GitHub Actions / test

Replace `⏎····'lib/**',⏎····'!lib/constants/**'⏎··` with `'lib/**',·'!lib/constants/**'`
'lib/**',
'!lib/constants/**'
],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
};
10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"lint": "eslint .",
"format": "npm run lint -- --fix",
"test": "jest",
"test": "jest --detectOpenHandles --config ./jest.config.js",
"test:coverage": "jest --coverage"
},
"dependencies": {
Expand All @@ -28,14 +28,6 @@
"engines": {
"node": ">=12.x"
},
"jest": {
"collectCoverage": true,
"coverageReporters": ["lcov", "text-summary"],
"collectCoverageFrom": [
"lib/**/*.js",
"!lib/constants/**"
]
},
"author": "ReportPortal.io",
"license": "Apache-2.0",
"repository": {
Expand Down
7 changes: 0 additions & 7 deletions spec/support/jasmine.json

This file was deleted.

0 comments on commit 1224303

Please sign in to comment.