|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`cmds:add adds change with dependencies: change-with-dependency - argv 1`] = ` |
| 4 | +{ |
| 5 | + "_": [ |
| 6 | + "add", |
| 7 | + "contacts", |
| 8 | + ], |
| 9 | + "cwd": "<CWD>", |
| 10 | + "note": "Adds contacts table", |
| 11 | + "requires": "users", |
| 12 | +} |
| 13 | +`; |
| 14 | + |
| 15 | +exports[`cmds:add adds change with dependencies: change-with-dependency - files 1`] = ` |
| 16 | +[ |
| 17 | + "deploy/contacts.sql", |
| 18 | + "deploy/users.sql", |
| 19 | + "launchql.control", |
| 20 | + "launchql.plan", |
| 21 | + "revert/contacts.sql", |
| 22 | + "revert/users.sql", |
| 23 | + "verify/contacts.sql", |
| 24 | + "verify/users.sql", |
| 25 | +] |
| 26 | +`; |
| 27 | + |
| 28 | +exports[`cmds:add adds change with dependencies: change-with-dependency - result 1`] = ` |
| 29 | +{ |
| 30 | + "_": [ |
| 31 | + "add", |
| 32 | + "contacts", |
| 33 | + ], |
| 34 | + "cwd": "<CWD>", |
| 35 | + "note": "Adds contacts table", |
| 36 | + "requires": "users", |
| 37 | +} |
| 38 | +`; |
| 39 | + |
| 40 | +exports[`cmds:add adds change with dependencies: change-with-dependency - transformResults 1`] = `[]`; |
| 41 | + |
| 42 | +exports[`cmds:add adds change with dependencies: change-with-dependency - writeResults 1`] = `[]`; |
| 43 | + |
| 44 | +exports[`cmds:add adds change with dependencies: dependency-change - argv 1`] = ` |
| 45 | +{ |
| 46 | + "_": [ |
| 47 | + "add", |
| 48 | + "users", |
| 49 | + ], |
| 50 | + "cwd": "<CWD>", |
| 51 | +} |
| 52 | +`; |
| 53 | + |
| 54 | +exports[`cmds:add adds change with dependencies: dependency-change - files 1`] = ` |
| 55 | +[ |
| 56 | + "deploy/users.sql", |
| 57 | + "launchql.control", |
| 58 | + "launchql.plan", |
| 59 | + "revert/users.sql", |
| 60 | + "verify/users.sql", |
| 61 | +] |
| 62 | +`; |
| 63 | + |
| 64 | +exports[`cmds:add adds change with dependencies: dependency-change - result 1`] = ` |
| 65 | +{ |
| 66 | + "_": [ |
| 67 | + "add", |
| 68 | + "users", |
| 69 | + ], |
| 70 | + "cwd": "<CWD>", |
| 71 | +} |
| 72 | +`; |
| 73 | + |
| 74 | +exports[`cmds:add adds change with dependencies: dependency-change - transformResults 1`] = `[]`; |
| 75 | + |
| 76 | +exports[`cmds:add adds change with dependencies: dependency-change - writeResults 1`] = `[]`; |
| 77 | + |
| 78 | +exports[`cmds:add adds change with note: change-with-note - argv 1`] = ` |
| 79 | +{ |
| 80 | + "_": [ |
| 81 | + "add", |
| 82 | + "brands", |
| 83 | + ], |
| 84 | + "cwd": "<CWD>", |
| 85 | + "note": "Adds the brands table", |
| 86 | +} |
| 87 | +`; |
| 88 | + |
| 89 | +exports[`cmds:add adds change with note: change-with-note - files 1`] = ` |
| 90 | +[ |
| 91 | + "deploy/brands.sql", |
| 92 | + "launchql.control", |
| 93 | + "launchql.plan", |
| 94 | + "revert/brands.sql", |
| 95 | + "verify/brands.sql", |
| 96 | +] |
| 97 | +`; |
| 98 | + |
| 99 | +exports[`cmds:add adds change with note: change-with-note - result 1`] = ` |
| 100 | +{ |
| 101 | + "_": [ |
| 102 | + "add", |
| 103 | + "brands", |
| 104 | + ], |
| 105 | + "cwd": "<CWD>", |
| 106 | + "note": "Adds the brands table", |
| 107 | +} |
| 108 | +`; |
| 109 | + |
| 110 | +exports[`cmds:add adds change with note: change-with-note - transformResults 1`] = `[]`; |
| 111 | + |
| 112 | +exports[`cmds:add adds change with note: change-with-note - writeResults 1`] = `[]`; |
| 113 | + |
| 114 | +exports[`cmds:add adds deeply nested path change: deeply-nested-path-change - argv 1`] = ` |
| 115 | +{ |
| 116 | + "_": [ |
| 117 | + "add", |
| 118 | + "schema/myschema/tables/mytable", |
| 119 | + ], |
| 120 | + "cwd": "<CWD>", |
| 121 | +} |
| 122 | +`; |
| 123 | + |
| 124 | +exports[`cmds:add adds deeply nested path change: deeply-nested-path-change - files 1`] = ` |
| 125 | +[ |
| 126 | + "deploy/schema/myschema/tables/mytable.sql", |
| 127 | + "launchql.control", |
| 128 | + "launchql.plan", |
| 129 | + "revert/schema/myschema/tables/mytable.sql", |
| 130 | + "verify/schema/myschema/tables/mytable.sql", |
| 131 | +] |
| 132 | +`; |
| 133 | + |
| 134 | +exports[`cmds:add adds deeply nested path change: deeply-nested-path-change - result 1`] = ` |
| 135 | +{ |
| 136 | + "_": [ |
| 137 | + "add", |
| 138 | + "schema/myschema/tables/mytable", |
| 139 | + ], |
| 140 | + "cwd": "<CWD>", |
| 141 | +} |
| 142 | +`; |
| 143 | + |
| 144 | +exports[`cmds:add adds deeply nested path change: deeply-nested-path-change - transformResults 1`] = `[]`; |
| 145 | + |
| 146 | +exports[`cmds:add adds deeply nested path change: deeply-nested-path-change - writeResults 1`] = `[]`; |
| 147 | + |
| 148 | +exports[`cmds:add adds nested path change: nested-path-change - argv 1`] = ` |
| 149 | +{ |
| 150 | + "_": [ |
| 151 | + "add", |
| 152 | + "api/v1/endpoints", |
| 153 | + ], |
| 154 | + "cwd": "<CWD>", |
| 155 | +} |
| 156 | +`; |
| 157 | + |
| 158 | +exports[`cmds:add adds nested path change: nested-path-change - files 1`] = ` |
| 159 | +[ |
| 160 | + "deploy/api/v1/endpoints.sql", |
| 161 | + "launchql.control", |
| 162 | + "launchql.plan", |
| 163 | + "revert/api/v1/endpoints.sql", |
| 164 | + "verify/api/v1/endpoints.sql", |
| 165 | +] |
| 166 | +`; |
| 167 | + |
| 168 | +exports[`cmds:add adds nested path change: nested-path-change - result 1`] = ` |
| 169 | +{ |
| 170 | + "_": [ |
| 171 | + "add", |
| 172 | + "api/v1/endpoints", |
| 173 | + ], |
| 174 | + "cwd": "<CWD>", |
| 175 | +} |
| 176 | +`; |
| 177 | + |
| 178 | +exports[`cmds:add adds nested path change: nested-path-change - transformResults 1`] = `[]`; |
| 179 | + |
| 180 | +exports[`cmds:add adds nested path change: nested-path-change - writeResults 1`] = `[]`; |
| 181 | + |
| 182 | +exports[`cmds:add adds simple change: simple-change - argv 1`] = ` |
| 183 | +{ |
| 184 | + "_": [ |
| 185 | + "add", |
| 186 | + "organizations", |
| 187 | + ], |
| 188 | + "cwd": "<CWD>", |
| 189 | +} |
| 190 | +`; |
| 191 | + |
| 192 | +exports[`cmds:add adds simple change: simple-change - files 1`] = ` |
| 193 | +[ |
| 194 | + "deploy/organizations.sql", |
| 195 | + "launchql.control", |
| 196 | + "launchql.plan", |
| 197 | + "revert/organizations.sql", |
| 198 | + "verify/organizations.sql", |
| 199 | +] |
| 200 | +`; |
| 201 | + |
| 202 | +exports[`cmds:add adds simple change: simple-change - result 1`] = ` |
| 203 | +{ |
| 204 | + "_": [ |
| 205 | + "add", |
| 206 | + "organizations", |
| 207 | + ], |
| 208 | + "cwd": "<CWD>", |
| 209 | +} |
| 210 | +`; |
| 211 | + |
| 212 | +exports[`cmds:add adds simple change: simple-change - transformResults 1`] = `[]`; |
| 213 | + |
| 214 | +exports[`cmds:add adds simple change: simple-change - writeResults 1`] = `[]`; |
| 215 | + |
| 216 | +exports[`cmds:add verifies SQL files do not contain transaction statements: no-transaction-statements - argv 1`] = ` |
| 217 | +{ |
| 218 | + "_": [ |
| 219 | + "add", |
| 220 | + "no-transactions", |
| 221 | + ], |
| 222 | + "cwd": "<CWD>", |
| 223 | +} |
| 224 | +`; |
| 225 | + |
| 226 | +exports[`cmds:add verifies SQL files do not contain transaction statements: no-transaction-statements - files 1`] = ` |
| 227 | +[ |
| 228 | + "deploy/no-transactions.sql", |
| 229 | + "launchql.control", |
| 230 | + "launchql.plan", |
| 231 | + "revert/no-transactions.sql", |
| 232 | + "verify/no-transactions.sql", |
| 233 | +] |
| 234 | +`; |
| 235 | + |
| 236 | +exports[`cmds:add verifies SQL files do not contain transaction statements: no-transaction-statements - result 1`] = ` |
| 237 | +{ |
| 238 | + "_": [ |
| 239 | + "add", |
| 240 | + "no-transactions", |
| 241 | + ], |
| 242 | + "cwd": "<CWD>", |
| 243 | +} |
| 244 | +`; |
| 245 | + |
| 246 | +exports[`cmds:add verifies SQL files do not contain transaction statements: no-transaction-statements - transformResults 1`] = `[]`; |
| 247 | + |
| 248 | +exports[`cmds:add verifies SQL files do not contain transaction statements: no-transaction-statements - writeResults 1`] = `[]`; |
0 commit comments