Collect coverage from all files (#5652)

This commit is contained in:
Felix Becker 2019-09-18 23:35:01 +02:00 committed by GitHub
parent a36064383e
commit 21017ff137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ const config = {
testEnvironment: __dirname + '/shared/dev/jest-environment.js',
collectCoverage: !!process.env.CI,
collectCoverageFrom: ['<rootDir>/src/**/*.{ts,tsx}'],
coverageDirectory: '<rootDir>/coverage',
coveragePathIgnorePatterns: [/\.test\.tsx?$/.source],
roots: ['<rootDir>/src'],

View File

@ -20,7 +20,7 @@
"graphql": "gulp graphQLTypes",
"graphql-lint": "graphql-schema-linter --old-implements-syntax --comment-descriptions cmd/frontend/graphqlbackend/schema.graphql",
"prepublish": "gulp generate",
"test": "jest --testPathIgnorePatterns e2e",
"test": "jest --testPathIgnorePatterns e2e regression",
"storybook": "start-storybook -p 9001 -c .storybook",
"storybook:build": "build-storybook -c .storybook",
"storybook:smoke-test": "yarn run storybook --smoke-test",