Skip to content

Commit

Permalink
update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher J. Brody committed Feb 22, 2021
1 parent cf613d9 commit f5acbe9
Show file tree
Hide file tree
Showing 17 changed files with 207 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Options:
--generate-example Generate an example project and add the library module to it with symlink by defult, with overwrite of example metro.config.js to add workaround for Metro symlink issue - requires both react-native-cli and yarn to be installed globally
--example-file-linkage DEPRECATED: do \`yarn add file:../\` instead of \`yarn add link:../\` in a generated example project, and add a postinstall workaround script, with no overwrite of example metro.config.js
--example-name [exampleName] Name for the example project (default: \\"example\\")
--example-react-native-version [exampleReactNativeVersion] React Native version for the generated example project (default: \\"react-native@latest\\")
--example-react-native-version [exampleReactNativeVersion] React Native template version for the generated example project, for example: react-native-tvos, [email protected] (requires --tvos-enabled option); [email protected] (default: \\"react-native@latest\\")
--write-example-podfile [iOS] EXPERIMENTAL FEATURE NOT SUPPORTED: write (or overwrite) example ios/Podfile
-h, --help display help for command"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Options:
--generate-example Generate an example project and add the library module to it with symlink by defult, with overwrite of example metro.config.js to add workaround for Metro symlink issue - requires both react-native-cli and yarn to be installed globally
--example-file-linkage DEPRECATED: do \`yarn add file:../\` instead of \`yarn add link:../\` in a generated example project, and add a postinstall workaround script, with no overwrite of example metro.config.js
--example-name [exampleName] Name for the example project (default: \\"example\\")
--example-react-native-version [exampleReactNativeVersion] React Native version for the generated example project (default: \\"react-native@latest\\")
--example-react-native-version [exampleReactNativeVersion] React Native template version for the generated example project, for example: react-native-tvos, [email protected] (requires --tvos-enabled option); [email protected] (default: \\"react-native@latest\\")
--write-example-podfile [iOS] EXPERIMENTAL FEATURE NOT SUPPORTED: write (or overwrite) example ios/Podfile
-h, --help display help for command"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Object {
Object {
"command": "--example-react-native-version [exampleReactNativeVersion]",
"default": "react-native@latest",
"description": "React Native version for the generated example project",
"description": "React Native template version for the generated example project, for example: react-native-tvos, [email protected] (requires --tvos-enabled option); [email protected]",
},
Object {
"command": "--write-example-podfile",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

exports[`create alice-bobbi view module with example, with defaults 1`] = `
Array [
"* execa.commandSync command: react-native --version options: {\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: yarn --version options: {\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi
Expand Down Expand Up @@ -792,13 +790,21 @@ content:
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: react-native init example --version react-native@latest options: {\\"cwd\\":\\"./react-native-alice-bobbi\\",\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi/example/
Object {
"call": "reactNativeInit",
"nameArray": Array [
"example",
],
"options": Object {
"directory": "react-native-alice-bobbi/example",
"template": "react-native@latest",
},
},
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* ensureDir dir: react-native-alice-bobbi/example/
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* outputFile name: react-native-alice-bobbi/example/metro.config.js
"* outputFile name: .../react-native-alice-bobbi/example/metro.config.js
content:
--------
// metro.config.js
Expand Down Expand Up @@ -832,7 +838,7 @@ module.exports = {
<<<<<<<< ======== >>>>>>>>
",
"* outputFile name: react-native-alice-bobbi/example/App.js
"* outputFile name: .../react-native-alice-bobbi/example/App.js
content:
--------
/**
Expand Down Expand Up @@ -883,11 +889,11 @@ const styles = StyleSheet.create({
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\"./react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\".../react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\"./react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\".../react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod install options: {\\"cwd\\":\\"./react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod install options: {\\"cwd\\":\\".../react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
",
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

exports[`create alice-bobbi view module with example, with custom config options 1`] = `
Array [
"* execa.commandSync command: react-native --version options: {\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: yarn --version options: {\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi
Expand Down Expand Up @@ -792,13 +790,21 @@ content:
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: react-native init test-demo --version [email protected] options: {\\"cwd\\":\\"./react-native-alice-bobbi\\",\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi/test-demo/
Object {
"call": "reactNativeInit",
"nameArray": Array [
"test-demo",
],
"options": Object {
"directory": "react-native-alice-bobbi/test-demo",
"template": "[email protected]",
},
},
"* ensureDir dir: .../react-native-alice-bobbi/test-demo/
",
"* ensureDir dir: react-native-alice-bobbi/test-demo/
"* ensureDir dir: .../react-native-alice-bobbi/test-demo/
",
"* outputFile name: react-native-alice-bobbi/test-demo/metro.config.js
"* outputFile name: .../react-native-alice-bobbi/test-demo/metro.config.js
content:
--------
// metro.config.js
Expand Down Expand Up @@ -832,7 +838,7 @@ module.exports = {
<<<<<<<< ======== >>>>>>>>
",
"* outputFile name: react-native-alice-bobbi/test-demo/App.js
"* outputFile name: .../react-native-alice-bobbi/test-demo/App.js
content:
--------
/**
Expand Down Expand Up @@ -883,11 +889,11 @@ const styles = StyleSheet.create({
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\"./react-native-alice-bobbi/test-demo\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\".../react-native-alice-bobbi/test-demo\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\"./react-native-alice-bobbi/test-demo/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\".../react-native-alice-bobbi/test-demo/ios\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod install options: {\\"cwd\\":\\"./react-native-alice-bobbi/test-demo/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod install options: {\\"cwd\\":\\".../react-native-alice-bobbi/test-demo/ios\\",\\"stdio\\":\\"inherit\\"}
",
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

exports[`create alice-bobbi module with example for Android only 1`] = `
Array [
"* execa.commandSync command: react-native --version options: {\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: yarn --version options: {\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi
Expand Down Expand Up @@ -385,13 +383,21 @@ sdk.dir=/Users/{username}/Library/Android/sdk
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: react-native init example --version react-native@latest options: {\\"cwd\\":\\"./react-native-alice-bobbi\\",\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi/example/
Object {
"call": "reactNativeInit",
"nameArray": Array [
"example",
],
"options": Object {
"directory": "react-native-alice-bobbi/example",
"template": "react-native@latest",
},
},
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* ensureDir dir: react-native-alice-bobbi/example/
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* outputFile name: react-native-alice-bobbi/example/metro.config.js
"* outputFile name: .../react-native-alice-bobbi/example/metro.config.js
content:
--------
// metro.config.js
Expand Down Expand Up @@ -425,7 +431,7 @@ module.exports = {
<<<<<<<< ======== >>>>>>>>
",
"* outputFile name: react-native-alice-bobbi/example/App.js
"* outputFile name: .../react-native-alice-bobbi/example/App.js
content:
--------
/**
Expand Down Expand Up @@ -488,7 +494,7 @@ const styles = StyleSheet.create({
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\"./react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\".../react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
",
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

exports[`create alice-bobbi module with defaults 1`] = `
Array [
"* execa.commandSync command: react-native --version options: {\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: yarn --version options: {\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi
Expand Down Expand Up @@ -788,13 +786,21 @@ content:
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: react-native init example --version react-native@latest options: {\\"cwd\\":\\"./react-native-alice-bobbi\\",\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi/example/
Object {
"call": "reactNativeInit",
"nameArray": Array [
"example",
],
"options": Object {
"directory": "react-native-alice-bobbi/example",
"template": "react-native@latest",
},
},
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* ensureDir dir: react-native-alice-bobbi/example/
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* outputFile name: react-native-alice-bobbi/example/metro.config.js
"* outputFile name: .../react-native-alice-bobbi/example/metro.config.js
content:
--------
// metro.config.js
Expand Down Expand Up @@ -828,7 +834,7 @@ module.exports = {
<<<<<<<< ======== >>>>>>>>
",
"* outputFile name: react-native-alice-bobbi/example/App.js
"* outputFile name: .../react-native-alice-bobbi/example/App.js
content:
--------
/**
Expand Down Expand Up @@ -891,11 +897,11 @@ const styles = StyleSheet.create({
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\"./react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\".../react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\"./react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\".../react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod install options: {\\"cwd\\":\\"./react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod install options: {\\"cwd\\":\\".../react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
",
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

exports[`create alice-bobbi module with example, with \`exampleFileLinkage: true\` then recover from missing scripts in example package.json 1`] = `
Array [
"* execa.commandSync command: react-native --version options: {\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: yarn --version options: {\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi
Expand Down Expand Up @@ -788,13 +786,21 @@ content:
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: react-native init example --version react-native@latest options: {\\"cwd\\":\\"./react-native-alice-bobbi\\",\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi/scripts/
Object {
"call": "reactNativeInit",
"nameArray": Array [
"example",
],
"options": Object {
"directory": "react-native-alice-bobbi/example",
"template": "react-native@latest",
},
},
"* ensureDir dir: .../react-native-alice-bobbi/scripts/
",
"* ensureDir dir: react-native-alice-bobbi/example/
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* outputFile name: react-native-alice-bobbi/scripts/examples_postinstall.js
"* outputFile name: .../react-native-alice-bobbi/scripts/examples_postinstall.js
content:
--------
#!/usr/bin/env node
Expand Down Expand Up @@ -911,7 +917,7 @@ content:
<<<<<<<< ======== >>>>>>>>
",
"* outputFile name: react-native-alice-bobbi/example/App.js
"* outputFile name: .../react-native-alice-bobbi/example/App.js
content:
--------
/**
Expand Down Expand Up @@ -976,11 +982,11 @@ const styles = StyleSheet.create({
",
Object {
"call": "fs.readFileSync",
"jsonFilePath": "./react-native-alice-bobbi/example/package.json",
"jsonFilePath": ".../react-native-alice-bobbi/example/package.json",
},
Object {
"call": "fs.writeFileSync",
"filePath": "./react-native-alice-bobbi/example/package.json",
"filePath": ".../react-native-alice-bobbi/example/package.json",
"json": "{
\\"name\\": \\"example\\",
\\"version\\": \\"0.0.1\\",
Expand All @@ -999,11 +1005,11 @@ const styles = StyleSheet.create({
"spaces": 2,
},
},
"* execa.commandSync command: yarn add file:../ options: {\\"cwd\\":\\"./react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: yarn add file:../ options: {\\"cwd\\":\\".../react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\"./react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\".../react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod install options: {\\"cwd\\":\\"./react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod install options: {\\"cwd\\":\\".../react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
",
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

exports[`create alice-bobbi module with example, with prefix: null 1`] = `
Array [
"* execa.commandSync command: react-native --version options: {\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: yarn --version options: {\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi
Expand Down Expand Up @@ -788,13 +786,21 @@ content:
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: react-native init example --version react-native@latest options: {\\"cwd\\":\\"./react-native-alice-bobbi\\",\\"stdio\\":\\"inherit\\"}
",
"* ensureDir dir: react-native-alice-bobbi/example/
Object {
"call": "reactNativeInit",
"nameArray": Array [
"example",
],
"options": Object {
"directory": "react-native-alice-bobbi/example",
"template": "react-native@latest",
},
},
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* ensureDir dir: react-native-alice-bobbi/example/
"* ensureDir dir: .../react-native-alice-bobbi/example/
",
"* outputFile name: react-native-alice-bobbi/example/metro.config.js
"* outputFile name: .../react-native-alice-bobbi/example/metro.config.js
content:
--------
// metro.config.js
Expand Down Expand Up @@ -828,7 +834,7 @@ module.exports = {
<<<<<<<< ======== >>>>>>>>
",
"* outputFile name: react-native-alice-bobbi/example/App.js
"* outputFile name: .../react-native-alice-bobbi/example/App.js
content:
--------
/**
Expand Down Expand Up @@ -891,11 +897,11 @@ const styles = StyleSheet.create({
<<<<<<<< ======== >>>>>>>>
",
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\"./react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: yarn add link:../ options: {\\"cwd\\":\\".../react-native-alice-bobbi/example\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\"./react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod --version options: {\\"cwd\\":\\".../react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
",
"* execa.commandSync command: pod install options: {\\"cwd\\":\\"./react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
"* execa.commandSync command: pod install options: {\\"cwd\\":\\".../react-native-alice-bobbi/example/ios\\",\\"stdio\\":\\"inherit\\"}
",
]
`;
Loading

0 comments on commit f5acbe9

Please sign in to comment.