Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Add transformOptions
  • Loading branch information
ascorbic committed Jan 22, 2021
commit 30819cc55204d720ad1e0ed62e10238df5db30fc
2 changes: 2 additions & 0 deletions packages/gatsby-plugin-sharp/src/__tests__/plugin-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe(`pluginOptionsSchema`, () => {
breakpoints: [`mobile`],
backgroundColor: 0,
tracedSVGOptions: null,
transformOptions: false,
blurredOptions: 1,
jpgOptions: `none`,
pngOptions: [{}],
Expand All @@ -29,6 +30,7 @@ describe(`pluginOptionsSchema`, () => {
`"defaults.quality" must be a number`,
`"defaults.breakpoints[0]" must be a number`,
`"defaults.backgroundColor" must be a string`,
`"defaults.transformOptions" must be of type object`,
`"defaults.tracedSVGOptions" must be of type object`,
`"defaults.blurredOptions" must be of type object`,
`"defaults.jpgOptions" must be of type object`,
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby-plugin-sharp/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ exports.pluginOptionsSchema = ({ Joi }) =>
quality: Joi.number(),
breakpoints: Joi.array().items(Joi.number()),
backgroundColor: Joi.string(),
transformOptions: Joi.object(),
tracedSVGOptions: Joi.object(),
blurredOptions: Joi.object(),
jpgOptions: Joi.object(),
Expand Down