0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

chore: re-enable coverage

This commit is contained in:
Juan Picado @jotadeveloper 2020-03-15 18:02:40 +01:00 committed by Juan Picado
parent 4ecf3eca4f
commit b92935ea45
8 changed files with 19 additions and 25 deletions

View file

@ -1,9 +1,15 @@
module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
moduleFileExtensions: ['ts', 'js'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
'^.+\\.(js|ts)$': 'babel-jest',
},
verbose: true,
verbose: false,
collectCoverage: true,
collectCoverageFrom: [
"src/**/*.ts",
"!**/node_modules/**",
"!**/partials/**",
"!**/fixture/**",
],
coveragePathIgnorePatterns: ['node_modules', 'fixtures'],
};

View file

@ -1,6 +1,4 @@
const config = require('../../jest/config');
module.exports = Object.assign({}, config, {
collectCoverage: false
});
module.exports = Object.assign({}, config, {});

View file

@ -1,6 +1,4 @@
const config = require('../../jest/config');
module.exports = Object.assign({}, config, {
collectCoverage: false
});
module.exports = Object.assign({}, config, {});

View file

@ -1,8 +1,6 @@
const config = require('../../jest/config');
module.exports = Object.assign({}, config, {
setupFilesAfterEnv: ['./jest.setup.js'],
// FIXME: coverage fails here
collectCoverage: false
setupFilesAfterEnv: ['./jest.setup.js']
});

View file

@ -2,6 +2,6 @@ const config = require('../../jest/config');
module.exports = Object.assign({}, config, {
// FIXME: coverage fails here
collectCoverage: false
collectCoverage: true
});

View file

@ -1,5 +1,3 @@
const config = require('../../jest/config');
module.exports = Object.assign({}, config, {
collectCoverage: false
});
module.exports = Object.assign({}, config, {});

View file

@ -1,9 +1,4 @@
module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
},
verbose: true,
collectCoverage: false,
coveragePathIgnorePatterns: ['node_modules', 'fixtures'],
};
const config = require('../../jest/config');
module.exports = Object.assign({}, config, {});

View file

@ -21,6 +21,7 @@
"scripts": {
"clean": "rimraf ./build",
"type-check": "tsc --noEmit",
"test": "cross-env NODE_ENV=test BABEL_ENV=test jest",
"build:types": "tsc --emitDeclarationOnly --declaration true",
"build:js": "cross-env BABEL_ENV=registry babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps",
"build": "npm run build:js && npm run build:types"