-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Refactor Integration Tests (#75)
Refactor integration tests to use Bun shell util as well as bun tests to actually build the apps via the CLI.
- Loading branch information
1 parent
aa4ffc3
commit 11eed01
Showing
28 changed files
with
748 additions
and
684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
153 changes: 153 additions & 0 deletions
153
...tion-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
// Bun Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Generating rollup stats version 3 matches the snapshot 1`] = ` | ||
{ | ||
"assets": [ | ||
{ | ||
"name": "main-cc182ba1.js", | ||
"normalized": "main-*.js", | ||
"size": 577066, | ||
}, | ||
], | ||
"builtAt": Any<Number>, | ||
"bundleName": "test-rollup-v3-iife", | ||
"bundler": { | ||
"name": "rollup", | ||
"version": "3.29.4", | ||
}, | ||
"chunks": [ | ||
{ | ||
"entry": true, | ||
"files": [ | ||
"main-cc182ba1.js", | ||
], | ||
"id": "main", | ||
"initial": false, | ||
"names": [ | ||
"main", | ||
], | ||
"uniqueId": "0-main", | ||
}, | ||
], | ||
"duration": Any<Number>, | ||
"modules": [ | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "./commonjsHelpers.js", | ||
"size": 334, | ||
}, | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "../node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js?commonjs-module", | ||
"size": 27, | ||
}, | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "../node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js", | ||
"size": 560240, | ||
}, | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "./test-apps/rollup/src/getRandomNumber.js", | ||
"size": 98, | ||
}, | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "./test-apps/rollup/src/main.js", | ||
"size": 163, | ||
}, | ||
], | ||
"outputPath": StringContaining "/distV3", | ||
"plugin": { | ||
"name": "codecov-rollup-bundle-analysis-plugin", | ||
"version": "1.0.0", | ||
}, | ||
"version": "1", | ||
} | ||
`; | ||
exports[`Generating rollup stats version 4 matches the snapshot 1`] = ` | ||
{ | ||
"assets": [ | ||
{ | ||
"name": "main-ChwnvxRF.js", | ||
"normalized": "main-ChwnvxRF.js", | ||
"size": 577066, | ||
}, | ||
], | ||
"builtAt": Any<Number>, | ||
"bundleName": "test-rollup-v4-iife", | ||
"bundler": { | ||
"name": "rollup", | ||
"version": "4.9.6", | ||
}, | ||
"chunks": [ | ||
{ | ||
"entry": true, | ||
"files": [ | ||
"main-ChwnvxRF.js", | ||
], | ||
"id": "main", | ||
"initial": false, | ||
"names": [ | ||
"main", | ||
], | ||
"uniqueId": "0-main", | ||
}, | ||
], | ||
"duration": Any<Number>, | ||
"modules": [ | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "./commonjsHelpers.js", | ||
"size": 334, | ||
}, | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "../node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js?commonjs-module", | ||
"size": 27, | ||
}, | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "../node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js", | ||
"size": 560240, | ||
}, | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "./test-apps/rollup/src/getRandomNumber.js", | ||
"size": 98, | ||
}, | ||
{ | ||
"chunkUniqueIds": [ | ||
"0-main", | ||
], | ||
"name": "./test-apps/rollup/src/main.js", | ||
"size": 163, | ||
}, | ||
], | ||
"outputPath": StringContaining "/distV4", | ||
"plugin": { | ||
"name": "codecov-rollup-bundle-analysis-plugin", | ||
"version": "1.0.0", | ||
}, | ||
"version": "1", | ||
} | ||
`; |
77 changes: 0 additions & 77 deletions
77
...n-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-v3-plugin.test.ts.snap
This file was deleted.
Oops, something went wrong.
77 changes: 0 additions & 77 deletions
77
...n-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-v4-plugin.test.ts.snap
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.