From 46d46fd783dfedc468213eea7a3e51497621bcd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor?= Date: Mon, 18 Dec 2023 12:02:42 -0300 Subject: [PATCH] sonar: codesmell --- package.json | 3 +++ sonar-project.properties | 2 +- src/test/src/Modal.test.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 43fad13..146c42e 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "type": "git", "url": "https://github.com/fonteeboa/FBLibrary" }, + "publishConfig": { + "registry": "https://www.npmjs.com/package/fblibrary-react" + }, "main": "dist/bundle.js", "types": "dist/types/src/index.d.ts", "scripts": { diff --git a/sonar-project.properties b/sonar-project.properties index b5621ed..0cd1068 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -8,4 +8,4 @@ sonar.sourceEncoding=UTF-8 sonar.exclusions=src/test sonar.tests=src/test sonar.test.inclusions=**/*Test.tsx, **/*Test.ts, **/__tests__/** -sonar.coverage.exclusions=**/*Test.*,**/*Tests.* +sonar.coverage.exclusions=**/*Test.*,**/*Tests.*, src/test/* diff --git a/src/test/src/Modal.test.js b/src/test/src/Modal.test.js index 3258732..f649339 100644 --- a/src/test/src/Modal.test.js +++ b/src/test/src/Modal.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render, fireEvent, screen, waitFor} from '@testing-library/react'; +import { render, fireEvent, screen } from '@testing-library/react'; import '@testing-library/jest-dom'; import Modal from 'react-modal'; import { ModalFormHandler } from '../../components/baseLayouts/modals/modalFormHandler';