Move coverage via "jest" to coverage via integration tests. (#2675)

* Increase jest version for cvat-core

* Add projectRoot to jest config

* Update copyright

* auth_page.js. Remove timeout to url check. Update copyright.

Co-authored-by: Kruchinin <dmitryx.kruchinin@intel.com>
main
Dmitry Kruchinin 5 years ago committed by GitHub
parent 1ccc71f12e
commit 975f250846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
// Copyright (C) 2019-2020 Intel Corporation
// Copyright (C) 2019-2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
@ -6,7 +6,7 @@ const { defaults } = require('jest-config');
module.exports = {
coverageDirectory: 'reports/coverage',
coverageReporters: ['lcov'],
coverageReporters: ['json', ['lcov', { projectRoot: '../' }]],
moduleFileExtensions: [...defaults.moduleFileExtensions, 'ts', 'tsx'],
reporters: ['default', ['jest-junit', { outputDirectory: 'reports/junit' }]],
testMatch: ['**/tests/**/*.js'],

File diff suppressed because it is too large Load Diff

@ -26,7 +26,7 @@
"eslint-plugin-no-unsanitized": "^3.0.2",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-jest": "^24.1.0",
"jest": "^24.8.0",
"jest": "^26.6.3",
"jest-junit": "^6.4.0",
"jsdoc": "^3.6.4",
"webpack": "^4.31.0",

@ -1,4 +1,4 @@
// Copyright (C) 2020 Intel Corporation
// Copyright (C) 2020-2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
@ -10,7 +10,7 @@ describe('Check server availability', () => {
});
it('"/auth/login" contains in the URL', () => {
cy.url({ timeout: 8000 }).should('include', '/auth/login');
cy.url().should('include', '/auth/login');
});
it('"Sign in" button is exists', () => {

Loading…
Cancel
Save