Skip to content

Commit

Permalink
Fix isDeepFrozen integration test check to handle null values
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed May 8, 2024
1 parent 99dab4d commit 4030a69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/vite-presets-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const files = {
let isDeepFrozen = (obj: any) =>
Object.isFrozen(obj) &&
Object.keys(obj).every(
prop => typeof obj[prop] !== 'object' || isDeepFrozen(obj[prop])
prop => typeof obj[prop] !== 'object' || obj[prop] === null || isDeepFrozen(obj[prop])
);
export default {
Expand Down Expand Up @@ -214,6 +214,7 @@ test("Vite / presets", async () => {
"buildEnd",
"future",
"manifest",
"prerender",
"publicPath",
"routes",
"serverBuildFile",
Expand Down

0 comments on commit 4030a69

Please sign in to comment.