mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-19 22:49:00 +00:00
Added unit test coverage config (#2513)
This commit is contained in:
parent
1588b8c83d
commit
92d6e943db
1
.gitignore
vendored
1
.gitignore
vendored
@ -69,6 +69,7 @@ secrets
|
||||
# ts build info and report
|
||||
openmetadata-ui/src/main/resources/ui/webpack
|
||||
openmetadata-ui/src/main/resources/ui/tsconfig.tsbuildinfo
|
||||
openmetadata-ui/src/main/resources/ui/src/test
|
||||
|
||||
#tests
|
||||
.coverage
|
||||
|
@ -21,12 +21,12 @@ module.exports = {
|
||||
// Test files
|
||||
testMatch: ['<rootDir>/src/**/*.test.{ts,tsx,js,jsx}'], // All test files in subdirectories under /src
|
||||
|
||||
// // Test coverage
|
||||
// coverageDirectory: "<rootDir>/src/test/unit/coverage",
|
||||
// collectCoverageFrom: [
|
||||
// "<rootDir>/src/**/*.{ts,tsx,js,jsx}", // All files in subdirectories under src/app
|
||||
// "!<rootDir>/src/*", // Exclude files directly under src/app
|
||||
// ],
|
||||
// Test coverage
|
||||
coverageDirectory: "<rootDir>/src/test/unit/coverage",
|
||||
collectCoverageFrom: [
|
||||
"<rootDir>/src/**/*.{ts,tsx,js,jsx}", // All files in subdirectories under src/app
|
||||
"!<rootDir>/src/*", // Exclude files directly under src/app
|
||||
],
|
||||
|
||||
// TypeScript
|
||||
// preset: 'ts-jest',
|
||||
|
@ -72,8 +72,9 @@
|
||||
"start": "NODE_ENV=development BABEL_ENV=development webpack serve --config ./webpack.config.dev.js --env development",
|
||||
"build": "NODE_ENV=production BABEL_ENV=production webpack --config ./webpack.config.prod.js --env production",
|
||||
"preinstall": "cd ../../../../.. && yarn install --frozen-lockfile",
|
||||
"test": "jest --passWithNoTests --watch",
|
||||
"test:nowatch": "jest --passWithNoTests",
|
||||
"test": "jest --passWithNoTests",
|
||||
"test:watch": "jest --passWithNoTests --watch",
|
||||
"test:coverage": "jest --passWithNoTests --coverage",
|
||||
"lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\"",
|
||||
"lint:fix": "eslint './src/**/*.{js,jsx,ts,tsx}' --fix",
|
||||
"pretty": "prettier . --config './.prettierrc' --write",
|
||||
|
Loading…
x
Reference in New Issue
Block a user