Skip to content

Bug: @snowpack/web-test-runner coverage #2157

Discussion options

You must be logged in to vote

This is now fixed with @web/test-runner v0.12.6 or later. If you use other test runner packages, you might need to update those as well.

Note that you probably want to ignore the generated snowpack files from coverage:

// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin"
process.env.NODE_ENV = 'test';

module.exports = {
  coverageConfig: {
    exclude: ['**/*/_snowpack/**/*'],
  },
  plugins: [require('@snowpack/web-test-runner-plugin')()],
};

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jakesgordon
Comment options

@ambrt
Comment options

Answer selected by jakesgordon
Comment options

You must be logged in to vote
8 replies
@ambrt
Comment options

@LarsDenBakker
Comment options

@jakesgordon
Comment options

@LarsDenBakker
Comment options

@airimiea
Comment options

Comment options

You must be logged in to vote
2 replies
@LarsDenBakker
Comment options

@jbuckner
Comment options

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