Skip to content

Commit

Permalink
moved diff testing code to avoid failing snapshot test
Browse files Browse the repository at this point in the history
attempting to ignore node_modules in diff
  • Loading branch information
nstolpe committed Nov 5, 2024
1 parent 835fc1b commit 7b25de5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: 📄 Bundle size report
uses: ./.github/actions/bundle-size # path to composite action
with:
paths: "packages/**/*.min.js"
paths: "packages/**/dist/*.min.js"
onlyDiff: "true"
# branch: "develop" # branch to compare to
header: "Bundle size report" # PR comment header
Expand Down
10 changes: 9 additions & 1 deletion packages/victory-candlestick/src/helper-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,4 +488,12 @@ export const getBaseProps = (initialProps, fallbackProps) => {
};

// @TODO: remove this before merging, it's just for verifying the analysis and report.
const fake = () => "fake";

// @TODO: remove this when analyzer diff is confirmed to work.
export const bundleSizeIsDifferent = () => {
const x = "the bundle size should be different";
const y = "the bundle size should be different";
const z = "the bundle size should be different";

return { x, y, z };
};
9 changes: 0 additions & 9 deletions packages/victory-candlestick/src/victory-candlestick.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,3 @@ class VictoryCandlestickBase extends React.Component<VictoryCandlestickProps> {
}

export const VictoryCandlestick = addEvents(VictoryCandlestickBase, options);

// @TODO: remove this when analyzer diff is confirmed to work.
export const bundleSizeIsDifferent = () => {
const x = "the bundle size should be different";
const y = "the bundle size should be different";
const z = "the bundle size should be different";

return { x, y, z };
};

0 comments on commit 7b25de5

Please sign in to comment.