-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gatsby-plugin-sharp): enable gatsby cloud processing (#15384)
* feat(gatsby-plugin-sharp): enable gatsby cloud processing * fix snapshot * Downgrade got to version 8.3.2 to support node 8.0.0 * remove debug info
- Loading branch information
Showing
5 changed files
with
102 additions
and
2 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
41 changes: 41 additions & 0 deletions
41
packages/gatsby-plugin-sharp/src/__tests__/__snapshots__/process-file.js.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,41 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`processFile should offload sharp transforms to the cloud 1`] = ` | ||
Array [ | ||
Promise {}, | ||
] | ||
`; | ||
|
||
exports[`processFile should offload sharp transforms to the cloud 2`] = ` | ||
[MockFunction] { | ||
"calls": Array [ | ||
Array [ | ||
"https://example.com/image-service", | ||
Object { | ||
"body": Object { | ||
"file": "mypath/file.jpg", | ||
"options": Object { | ||
"stripMetadata": true, | ||
}, | ||
"transforms": Array [ | ||
Object { | ||
"args": Object { | ||
"height": 100, | ||
"width": 100, | ||
}, | ||
"outputPath": "myoutputpath/1234/file.jpg", | ||
}, | ||
], | ||
}, | ||
"json": true, | ||
}, | ||
], | ||
], | ||
"results": Array [ | ||
Object { | ||
"type": "return", | ||
"value": Promise {}, | ||
}, | ||
], | ||
} | ||
`; |
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
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