-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a16dc44
commit c756a17
Showing
9 changed files
with
38 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM node:18-alpine | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm i | ||
RUN npm i --ignore-scripts | ||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# Root project information | ||
sonar.projectKey=Mastercard_open-banking-reference-application-australia | ||
sonar.projectName=open-banking-reference-application-australia | ||
sonar.projectVersion=1.0 | ||
sonar.organization=mastercard | ||
|
||
# Exclusions parameters | ||
sonar.exclusions=Dockerfile,src/tests/**,public/** | ||
|
||
# This is the name and version displayed in the SonarCloud UI. | ||
#sonar.projectName=open-banking-reference-application-australia | ||
#sonar.projectVersion=1.0 | ||
# Test coverage parameters | ||
sonar.javascript.lcov.reportPaths=./coverage/lcov.info | ||
sonar.coverage.exclusions=src/**/*.ts,src/*.js,src/App.tsx,src/index.tsx,/*.js | ||
|
||
|
||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. | ||
#sonar.sources=. | ||
|
||
# Encoding of the source code. Default is default system encoding | ||
#sonar.sourceEncoding=UTF-8 | ||
# Duplication exclusion parameters | ||
sonar.cpd.exclusions=src/components/Product/data/index.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { render } from '@testing-library/react'; | ||
import { ExternalIcon } from '../components'; | ||
|
||
describe('Testing ExternalIcon component', () => { | ||
test('Should render ExternalIcon', () => { | ||
render( | ||
( | ||
<ExternalIcon data={'#FFFFFF'} background={'#FFF'} /> | ||
) as React.ReactElement | ||
); | ||
}); | ||
|
||
test('Should render ExternalIcon - 2', () => { | ||
render((<ExternalIcon background={'#FFF'} />) as React.ReactElement); | ||
}); | ||
}); |