Skip to content

Commit

Permalink
Update packages/kbn-optimizer/src/integration_tests/basic_optimizatio…
Browse files Browse the repository at this point in the history
…n.test.ts

Co-authored-by: Spencer <[email protected]>
  • Loading branch information
dmlemeshko and Spencer authored Nov 24, 2020
1 parent 5534334 commit c5e49ad
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,11 @@ it('uses cache on second run and exist cleanly', async () => {
`);
});

// test is failing since actual snapshot is modified when running with code coverage
(!!process.env.CODE_COVERAGE ? it.skip : it)('prepares assets for distribution', async () => {
it('prepares assets for distribution', async () => {
if (process.env.CODE_COVERAGE) {
// test fails when testing coverage because source includes instrumentation, so skip it
return;
}
const config = OptimizerConfig.create({
repoRoot: MOCK_REPO_DIR,
pluginScanDirs: [Path.resolve(MOCK_REPO_DIR, 'plugins'), Path.resolve(MOCK_REPO_DIR, 'x-pack')],
Expand Down

0 comments on commit c5e49ad

Please sign in to comment.