Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __tests__/__fixtures__/basic/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "bundle-analysis-test-fixture",
"name": "bundle-analysis-test-basic",
"version": "1.0.0",
"description": "its a test",
"main": "index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "bundle-analysis-test-fixture",
"name": "bundle-analysis-test-custom-output-directory",
"version": "1.0.0",
"description": "its a test",
"main": "index.js",
Expand Down
10 changes: 9 additions & 1 deletion __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ describe('sort of integration', () => {
),
'utf8'
)
expect(comment).toMatch(/no changes to the javascript bundle/)

// generate the output comment
const outputComment = `## 📦 Next.js Bundle Analysis for bundle-analysis-test-${dirName}

This analysis was generated by the [Next.js Bundle Analysis action](https://github.com/hashicorp/nextjs-bundle-analysis). 🤖

This PR introduced no changes to the JavaScript bundle! 🙌<!-- __NEXTJS_BUNDLE_bundle-analysis-test-${dirName} -->`

expect(comment).toMatch(outputComment)
})
})
})
Expand Down
Loading