Skip to content

Commit

Permalink
test(main-entry): Inline error snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Dec 27, 2018
1 parent 480f20d commit fdba306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ describe('rollup-plugin-main-entry', () => {
plugins: [mainEntry({ name: 'oops' })],
});
} catch (err) {
expect(err.message).toMatchSnapshot();
expect(err).toMatchInlineSnapshot(
`[TypeError: required field 'main' missing in package.json]`
);
}
});

Expand Down

0 comments on commit fdba306

Please sign in to comment.