Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to disable coverage on import lines #938

Open
sammysium opened this issue Oct 14, 2020 · 0 comments
Open

option to disable coverage on import lines #938

sammysium opened this issue Oct 14, 2020 · 0 comments

Comments

@sammysium
Copy link

not sure what I am missing but I have the following import. I am in react-native jest environment and apparently this is an istanbul issue?

    import styles from './styles.js';

where style.js is

const styles = {
  siteSummaryValueSecondary: {
    fontWeight: 'bold',
    fontSize: 30,
    color: '#ff0000'
  },
  cardTitlePrimary: {
    fontSize: 16
  },
  pickerStyleSmall: { height: 50, width: 200 }
};
export default styles;

it is a lot longer than that and used in many UI components. Now jest says:

      import styles from './styles';EEIEIIII

what am I supposed to test here? Can import files be ignored from coverage report?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant