Skip to content

Commit

Permalink
test: accomodate bundle size changes within preview-initial-release i…
Browse files Browse the repository at this point in the history
…f in split mode
  • Loading branch information
Hotell committed May 22, 2024
1 parent 4260ec0 commit 9bc7084
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,18 @@ describe('prepare-initial-release generator', () => {
files: {
library: [],
stories: [
{
filePath: 'packages/react-one-preview/library/bundle-size/index.fixture.js',
content: stripIndents`
import {One} from '@proj/react-one-preview';
console.log(One);
export default {
name: '@proj/react-one-preview - package',
}
`,
},
{
filePath: 'packages/react-one-preview/stories/src/One.stories.tsx',
content: stripIndents`
Expand Down Expand Up @@ -717,6 +729,18 @@ describe('prepare-initial-release generator', () => {
}),
);

expect(utils.project.library.bundleSize()).toMatchInlineSnapshot(`
Object {
"packages/react-one/library/bundle-size/index.fixture.js": "import { One } from '@proj/react-one';
console.log(One);
export default {
name: '@proj/react-one - package',
};",
}
`);

expect(utils.project.library.md.readme()).toMatchInlineSnapshot(`
"# @proj/react-one
Expand Down

0 comments on commit 9bc7084

Please sign in to comment.