Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant