Skip to content

Commit

Permalink
Merge pull request #1878 from IntersectMBO/fix/remove-package-manager…
Browse files Browse the repository at this point in the history
…-in-validation-service

fix: remove json resolving causing unfinished validation service build
  • Loading branch information
MSzalowski authored Aug 30, 2024
2 parents 51e039d + a93d58d commit 3eababd
Show file tree
Hide file tree
Showing 6 changed files with 340 additions and 21 deletions.
321 changes: 321 additions & 0 deletions govtool/frontend/junit-report.xml

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions govtool/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"postinstall": "patch-package",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"test": "vitest",
"test": "NODE_OPTIONS=--max_old_space_size=8192 vitest",
"test:coverage": "vitest --coverage",
"test:make-badges": "npx istanbul-badges-readme --readmeDir='../../'",
"test:verbose": "vitest --reporter=verbose",
Expand Down Expand Up @@ -109,5 +109,6 @@
"typescript": "^5.0.2"
},
"readme": "ERROR: No README data found!",
"_id": "[email protected]"
"_id": "[email protected]",
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
28 changes: 14 additions & 14 deletions govtool/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ const vitestConfig = defineVitestConfig({
junit: "./junit-report.xml",
json: "./json-report.json",
},
coverage: {
include: [
"src/components/**/*",
"src/consts/**/*",
"src/context/**/*",
"src/hooks/**/*",
"src/services/**/*",
"src/utils/**/*",
],
provider: "v8",
reporter: ["json-summary", "lcov"],
reportOnFailure: true,
enabled: true,
},
// coverage: {
// include: [
// "src/components/**/*",
// "src/consts/**/*",
// "src/context/**/*",
// "src/hooks/**/*",
// "src/services/**/*",
// "src/utils/**/*",
// ],
// provider: "v8",
// reporter: ["json-summary", "lcov"],
// reportOnFailure: true,
// enabled: true,
// },
},
});

Expand Down
3 changes: 1 addition & 2 deletions govtool/metadata-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,5 @@
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.3"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
}
3 changes: 1 addition & 2 deletions govtool/metadata-validation/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ValidationPipe } from '@nestjs/common';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';

import { AppModule } from './app.module';
import { version } from '../package.json';

async function bootstrap() {
const app = await NestFactory.create(AppModule, {
Expand All @@ -14,7 +13,7 @@ async function bootstrap() {
const config = new DocumentBuilder()
.setTitle('Metadata Validation Tool')
.setDescription('The Metadata Validation Tool API description')
.setVersion(version)
.setVersion('1.0.14')
.build();

const document = SwaggerModule.createDocument(app, config);
Expand Down
1 change: 0 additions & 1 deletion govtool/metadata-validation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"resolveJsonModule": true,
"paths": {
"@/*": ["src/*"],
"@dto": ["src/dto"],
Expand Down

0 comments on commit 3eababd

Please sign in to comment.