Skip to content

Commit

Permalink
feat: minify whitespaces when bundling monitors (#886)
Browse files Browse the repository at this point in the history
* feat: minify whitespaces when bundling monitors

* fix test
  • Loading branch information
vigneshshanmugam authored Jan 11, 2024
1 parent 37fa84f commit 7609e97
Show file tree
Hide file tree
Showing 5 changed files with 364 additions and 36 deletions.
5 changes: 2 additions & 3 deletions __tests__/push/bundler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ async function validateZip(content) {
expect(files).toEqual([partialPath]);

// Verify if files are bundled together
expect(contents).toContain('node_modules/is-positive/index.js');
expect(contents).toContain('test-bundler/bundle.journey.ts');
expect(contents).toContain('test-bundler/utils.ts');
expect(contents).toContain('import_is_positive');
expect(contents).toContain('utils_default');
// Verify if sourcemaps are present after bundling
expect(contents).toContain('sourceMappingURL=data:application/json;base64');
await unlink(pathToZip);
Expand Down
Loading

0 comments on commit 7609e97

Please sign in to comment.