Skip to content

Commit

Permalink
chore(sonar): edit sonar args
Browse files Browse the repository at this point in the history
  • Loading branch information
rudemex committed May 18, 2022
1 parent 4f09484 commit 441d22c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 1 addition & 3 deletions packages/config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"strict": false
},
"include": ["**/*"],
"exclude": ["."]
}
}
5 changes: 1 addition & 4 deletions packages/test-utils/src/__test__/testcontainer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ describe('testContainers - MySql', () => {
let container: testContainers;

beforeAll(async () => {
container = await new testContainers('mysql:5.7', {
...TCMySqlOptions,
startupTimeout: 1000000,
});
container = await new testContainers('mysql:5.7', TCMySqlOptions);
await container.start();
});

Expand Down
5 changes: 4 additions & 1 deletion packages/typeorm/src/__test__/typeorm.module.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ describe('TypeOrm - MySql', () => {
let container: testContainers;

beforeAll(async () => {
container = await new testContainers('mysql:5.7', TCMySqlOptions);
container = await new testContainers('mysql:5.7', {
...TCMySqlOptions,
startupTimeout: 10000000,
});
await container.start();
});

Expand Down
6 changes: 3 additions & 3 deletions sonar-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const projectName = 'tresdoce-nestjs-toolkit';
const sonarProjectKey = `${organizationName}_${projectName}`;
const sonarPropertiesFilename = 'sonar-project.properties';

const blacklist = ['.DS_Store', 'config', 'tresdoce-types'];
const blacklist = ['.DS_Store', 'config', 'test-utils', 'tresdoce-types'];
const directoryPath = path.join(__dirname, 'packages');

fs.readdir(directoryPath, (err, files) => {
Expand All @@ -19,10 +19,10 @@ fs.readdir(directoryPath, (err, files) => {

const sonarSources = listOfPackages.map((pkgName) => `./packages/${pkgName}/src`);
const sonarTestExecutionReportPaths = listOfPackages.map(
(pkgName) => `./packages/${pkgName}/test-report.xml`,
(pkgName) => `packages/${pkgName}/test-report.xml`,
);
const sonarLcovReportPath = listOfPackages.map(
(pkgName) => `./packages/${pkgName}/coverage/lcov.info`,
(pkgName) => `packages/${pkgName}/coverage/lcov.info`,
);

const sonarCloudProperties = `sonar.organization=${organizationName}
Expand Down

0 comments on commit 441d22c

Please sign in to comment.