Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Apr 15, 2020
1 parent d725570 commit ae658e8
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 187 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ Object {
"resolve": [Function],
"type": "GatsbyPlugin",
},
"gatsbyShadowFile": Object {
"args": Object {
"id": Object {
"type": "String",
},
},
"resolve": [Function],
"type": "GatsbyShadowFile",
},
"gitIgnore": Object {
"args": Object {
"id": Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Array [
Object {
"resource": "File",
"step": 0,
"validationError": "File should not be used in the introduction step",
"validationError": "Resources e.g. File should not be placed in the introduction step",
},
]
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This recipe helps you start developing with the [Theme UI](https://theme-ui.com)
",
"Write out Theme UI configuration files.
<GatsbyShadowFile
<ShadowFile
theme=\\"gatsby-plugin-theme-ui\\"
path=\\"src/gatsby-plugin-theme-ui/index.js\\"
/>
Expand Down Expand Up @@ -73,9 +73,9 @@ Add a package.json config object.

exports[`partitions the MDX into steps 1`] = `
Array [
"# Prettier Git Hook
"# Automatically run Prettier on Git commits
Make sure all of your code is run through prettier when you commit it to git.
Make sure all of your code is run through Prettier when you commit it to git.
We achieve this by configuring prettier to run on git hooks using husky and
lint-staged.
",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/recipes/parser/parser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ test(`raises an error if JSX doesn't parse`, async () => {
`)
} catch (e) {
expect(e).toMatchInlineSnapshot(
`[Error: {"location":{"line":1,"column":43},"validationError":"Could not parse /"<NPMScript name=/"foo/" command=/"bar/" //""}]`
`[Error: {"location":{"line":1,"column":43},"validationError":"Could not parse \\"<NPMScript name=\\"foo\\" command=\\"bar\\" /\\""}]`
)
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,21 @@ Object {
*/
module.exports = {
/* Your site config here */
plugins: []
};",
plugins: [],
}
",
"describe": "Install gatsby-plugin-foo in gatsby-config.js",
"diff": "[31m- Original - 2[39m
[32m+ Modified + 3[39m
"diff": "[31m- Original - 1[39m
[32m+ Modified + 1[39m
[33m@@ -5,5 +5,6 @@[39m
[33m@@ -5,6 +5,6 @@[39m
 */
 module.exports = {
 /* Your site config here */
- plugins: []
- };
- plugins: [],
+ plugins: [\\"gatsby-plugin-foo\\"],
[32m+ }[39m
[32m+[39m",
[2m }[22m
",
"id": "gatsby-plugin-foo",
"name": "gatsby-plugin-foo",
"newState": "/**
Expand Down Expand Up @@ -161,179 +161,87 @@ Object {
exports[`gatsby-plugin resource e2e plugin resource test: GatsbyPlugin create plan 1`] = `
Object {
"currentState": "const redish = \`#c5484d\`;
"currentState": "const redish = \`#c5484d\`
module.exports = {
siteMetadata: {
title: \`Bricolage\`,
author: \`Kyle Mathews\`,
homeCity: \`San Francisco\`
homeCity: \`San Francisco\`,
},
plugins: [{
resolve: \`gatsby-source-filesystem\`,
options: {
path: \`\${__dirname}/src/pages\`,
name: \`pages\`
}
}, \`gatsby-transformer-sharp\`, \`gatsby-plugin-emotion\`, {
resolve: \`gatsby-plugin-typography\`,
options: {
pathToConfigModule: \`src/utils/typography\`
}
}, {
resolve: \`gatsby-transformer-remark\`,
options: {
plugins: [{
resolve: \`gatsby-remark-images\`,
options: {
maxWidth: 590
}
}, {
resolve: \`gatsby-remark-responsive-iframe\`,
options: {
wrapperStyle: \`margin-bottom: 1.0725rem\`
}
}, \`gatsby-remark-prismjs\`, \`gatsby-remark-copy-linked-files\`, \`gatsby-remark-smartypants\`]
}
}, \`gatsby-plugin-sharp\`, {
resolve: \`gatsby-plugin-google-analytics\`,
options: {
trackingId: \`UA-774017-3\`
}
}, {
resolve: \`gatsby-plugin-manifest\`,
options: {
name: \`Bricolage\`,
short_name: \`Bricolage\`,
icon: \`static/logo.png\`,
start_url: \`/\`,
background_color: redish,
theme_color: redish,
display: \`minimal-ui\`
}
}, \`gatsby-plugin-offline\`, // \`gatsby-plugin-preact\`,
\`gatsby-plugin-react-helmet\`]
};",
plugins: [
{
resolve: \`gatsby-source-filesystem\`,
options: {
path: \`\${__dirname}/src/pages\`,
name: \`pages\`,
},
},
\`gatsby-transformer-sharp\`,
\`gatsby-plugin-emotion\`,
{
resolve: \`gatsby-plugin-typography\`,
options: {
pathToConfigModule: \`src/utils/typography\`,
},
},
{
resolve: \`gatsby-transformer-remark\`,
options: {
plugins: [
{
resolve: \`gatsby-remark-images\`,
options: {
maxWidth: 590,
},
},
{
resolve: \`gatsby-remark-responsive-iframe\`,
options: {
wrapperStyle: \`margin-bottom: 1.0725rem\`,
},
},
\`gatsby-remark-prismjs\`,
\`gatsby-remark-copy-linked-files\`,
\`gatsby-remark-smartypants\`,
],
},
},
\`gatsby-plugin-sharp\`,
{
resolve: \`gatsby-plugin-google-analytics\`,
options: {
trackingId: \`UA-774017-3\`,
},
},
{
resolve: \`gatsby-plugin-manifest\`,
options: {
name: \`Bricolage\`,
short_name: \`Bricolage\`,
icon: \`static/logo.png\`,
start_url: \`/\`,
background_color: redish,
theme_color: redish,
display: \`minimal-ui\`,
},
},
\`gatsby-plugin-offline\`, // \`gatsby-plugin-preact\`,
\`gatsby-plugin-react-helmet\`,
],
}
",
"describe": "Install gatsby-plugin-foo in gatsby-config.js",
"diff": "[31m- Original - 47[39m
[32m+ Modified + 65[39m
"diff": "[31m- Original - 0[39m
[32m+ Modified + 1[39m
- const redish = \`#c5484d\`;
+ const redish = \`#c5484d\`
 module.exports = {
 siteMetadata: {
 title: \`Bricolage\`,
 author: \`Kyle Mathews\`,
- homeCity: \`San Francisco\`
+ homeCity: \`San Francisco\`,
 },
- plugins: [{
- resolve: \`gatsby-source-filesystem\`,
- options: {
- path: \`\${__dirname}/src/pages\`,
- name: \`pages\`
- }
- }, \`gatsby-transformer-sharp\`, \`gatsby-plugin-emotion\`, {
- resolve: \`gatsby-plugin-typography\`,
- options: {
- pathToConfigModule: \`src/utils/typography\`
- }
- }, {
- resolve: \`gatsby-transformer-remark\`,
- options: {
- plugins: [{
- resolve: \`gatsby-remark-images\`,
- options: {
- maxWidth: 590
- }
- }, {
- resolve: \`gatsby-remark-responsive-iframe\`,
- options: {
- wrapperStyle: \`margin-bottom: 1.0725rem\`
- }
- }, \`gatsby-remark-prismjs\`, \`gatsby-remark-copy-linked-files\`, \`gatsby-remark-smartypants\`]
- }
- }, \`gatsby-plugin-sharp\`, {
- resolve: \`gatsby-plugin-google-analytics\`,
- options: {
- trackingId: \`UA-774017-3\`
- }
- }, {
- resolve: \`gatsby-plugin-manifest\`,
- options: {
- name: \`Bricolage\`,
- short_name: \`Bricolage\`,
- icon: \`static/logo.png\`,
- start_url: \`/\`,
- background_color: redish,
- theme_color: redish,
- display: \`minimal-ui\`
- }
- }, \`gatsby-plugin-offline\`, // \`gatsby-plugin-preact\`,
- \`gatsby-plugin-react-helmet\`]
- };
+ plugins: [
+ {
+ resolve: \`gatsby-source-filesystem\`,
+ options: {
+ path: \`\${__dirname}/src/pages\`,
+ name: \`pages\`,
+ },
+ },
+ \`gatsby-transformer-sharp\`,
+ \`gatsby-plugin-emotion\`,
+ {
+ resolve: \`gatsby-plugin-typography\`,
+ options: {
+ pathToConfigModule: \`src/utils/typography\`,
+ },
+ },
+ {
+ resolve: \`gatsby-transformer-remark\`,
+ options: {
+ plugins: [
+ {
+ resolve: \`gatsby-remark-images\`,
+ options: {
+ maxWidth: 590,
+ },
+ },
+ {
+ resolve: \`gatsby-remark-responsive-iframe\`,
+ options: {
+ wrapperStyle: \`margin-bottom: 1.0725rem\`,
+ },
+ },
+ \`gatsby-remark-prismjs\`,
+ \`gatsby-remark-copy-linked-files\`,
+ \`gatsby-remark-smartypants\`,
+ ],
+ },
+ },
+ \`gatsby-plugin-sharp\`,
+ {
+ resolve: \`gatsby-plugin-google-analytics\`,
+ options: {
+ trackingId: \`UA-774017-3\`,
+ },
+ },
+ {
+ resolve: \`gatsby-plugin-manifest\`,
+ options: {
+ name: \`Bricolage\`,
+ short_name: \`Bricolage\`,
+ icon: \`static/logo.png\`,
+ start_url: \`/\`,
+ background_color: redish,
+ theme_color: redish,
+ display: \`minimal-ui\`,
+ },
+ },
+ \`gatsby-plugin-offline\`, // \`gatsby-plugin-preact\`,
+ \`gatsby-plugin-react-helmet\`,
@@ -64,6 +64,7 @@
 },
 \`gatsby-plugin-offline\`, // \`gatsby-plugin-preact\`,
 \`gatsby-plugin-react-helmet\`,
+ \\"gatsby-plugin-foo\\",
[32m+ ],[39m
[32m+ }[39m
[32m+[39m",
[2m ],[22m
[2m }[22m
",
"id": "gatsby-plugin-foo",
"name": "gatsby-plugin-foo",
"newState": "const redish = \`#c5484d\`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Shadow File resource e2e shadow file resource test: ShadowFile create 1`] = `
exports[`Shadow File resource e2e shadow file resource test: GatsbyShadowFile create 1`] = `
Object {
"_message": "Shadowed src/gatsby-theme-blog/components/author.js from gatsby-theme-blog",
"contents": "import React from 'react'
Expand All @@ -13,7 +13,7 @@ export default () => <h1>F. Scott Fitzgerald</h1>
}
`;

exports[`Shadow File resource e2e shadow file resource test: ShadowFile create plan 1`] = `
exports[`Shadow File resource e2e shadow file resource test: GatsbyShadowFile create plan 1`] = `
Object {
"currentState": Object {},
"describe": "Shadow src/components/author.js from the theme gatsby-theme-blog",
Expand All @@ -39,7 +39,7 @@ export default () => <h1>F. Scott Fitzgerald</h1>
}
`;
exports[`Shadow File resource e2e shadow file resource test: ShadowFile destroy 1`] = `
exports[`Shadow File resource e2e shadow file resource test: GatsbyShadowFile destroy 1`] = `
Object {
"_message": "Shadowed src/gatsby-theme-blog/components/author.js from gatsby-theme-blog",
"contents": "import React from 'react'
Expand All @@ -52,7 +52,7 @@ export default () => <h1>F. Scott Fitzgerald</h1>
}
`;
exports[`Shadow File resource e2e shadow file resource test: ShadowFile update 1`] = `
exports[`Shadow File resource e2e shadow file resource test: GatsbyShadowFile update 1`] = `
Object {
"_message": "Shadowed src/gatsby-theme-blog/components/author.js from gatsby-theme-blog",
"contents": "import React from 'react'
Expand All @@ -65,7 +65,7 @@ export default () => <h1>F. Scott Fitzgerald</h1>
}
`;
exports[`Shadow File resource e2e shadow file resource test: ShadowFile update plan 1`] = `
exports[`Shadow File resource e2e shadow file resource test: GatsbyShadowFile update plan 1`] = `
Object {
"currentState": Object {
"_message": "Shadowed src/gatsby-theme-blog/components/author.js from gatsby-theme-blog",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ Object {
"diff": "- Original - 1
+ Modified + 3
@@ -3,5 +3,7 @@
 \\"hooks\\": Object {},
 },
 Object {
 \\"name\\": \\"test\\",
- \\"scripts\\": Object {},
+ \\"scripts\\": Object {
Expand Down

0 comments on commit ae658e8

Please sign in to comment.