-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
packageData.test.js.snap
261 lines (248 loc) · 10.7 KB
/
packageData.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`@babel/core peerDep 1`] = `
Object {
"devDependencies": Object {
"@babel/core": "7.0.0-beta.40",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"babel-loader": "^8.0.0-beta.0",
},
"name": "add-@babel/core-peerDep",
}
`;
exports[`jest babel-core bridge 1`] = `
Object {
"devDependencies": Object {
"@babel/core": "7.0.0-beta.40",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"babel-core": "^7.0.0-bridge.0",
"babel-loader": "^8.0.0-beta.0",
"jest": "22.0.0",
},
"name": "add-@babel/core-peerDep",
}
`;
exports[`scripts 1`] = `
Object {
"name": "mocha-scripts-test",
"scripts": Object {
"coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text _mocha --require @babel/register test/*.js",
"prepublish": "npm run test",
"test": "mocha --compilers js:@babel/register --require @babel/polyfill test/*Test.js",
"test2": "mocha --compilers js:@babel/register --require @babel/polyfill test/*Test.js",
},
}
`;
exports[`scripts 2`] = `
Object {
"devDependencies": Object {
"@babel/cli": "7.0.0-beta.40",
"@babel/node": "7.0.0-beta.40",
},
"name": "scripts-babel-node",
"scripts": Object {
"test": "babel-node",
},
}
`;
exports[`upgradeDeps adds flow preset if user is upgrading from previous v7 1`] = `
Object {
"@babel/core": "7.0.0-beta.39",
"@babel/preset-flow": "7.0.0-beta.39",
"@babel/preset-react": "7.0.0-beta.39",
}
`;
exports[`upgradeDeps adds flow preset if user was using v6 preset-react 1`] = `
Object {
"@babel/core": "7.0.0-beta.39",
"@babel/preset-flow": "7.0.0-beta.39",
"@babel/preset-react": "7.0.0-beta.39",
}
`;
exports[`upgradeDeps does not add flow preset if user is upgrading from previous v7 but flow not detected 1`] = `
Object {
"@babel/core": "7.0.0-beta.39",
"@babel/preset-react": "7.0.0-beta.39",
}
`;
exports[`upgradeDeps does not add flow preset if user was using v6 preset-react but flow not detected 1`] = `
Object {
"@babel/core": "7.0.0-beta.39",
"@babel/preset-react": "7.0.0-beta.39",
}
`;
exports[`upgradeDeps handles flow preset if user had entry and is upgrading from previous v7 1`] = `
Object {
"@babel/core": "7.0.0-beta.39",
"@babel/preset-flow": "7.0.0-beta.39",
"@babel/preset-react": "7.0.0-beta.39",
}
`;
exports[`upgradeDeps handles flow preset if user had entry and is upgrading from previous v7 and flow not detected 1`] = `
Object {
"@babel/core": "7.0.0-beta.39",
"@babel/preset-flow": "7.0.0-beta.39",
"@babel/preset-react": "7.0.0-beta.39",
}
`;
exports[`upgradeDeps upgrades from earlier v7 version 1`] = `
Object {
"@babel/core": "7.0.0-beta.39",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.39",
"@babel/plugin-syntax-dynamic-import": "7.0.0-beta.39",
"@babel/polyfill": "https://github.com/some/tarball/stable#85a1b40e4616fe54e4e13fdd9350128d1f0508e6",
"@babel/preset-env": "7.0.0-beta.39",
"@babel/preset-flow": "not/semver#dddddd",
"@babel/preset-react": "7.0.0-beta.39",
}
`;
exports[`upgradeDeps upgrades from v6 1`] = `
Object {
"@babel/cli": "7.0.0-beta.39",
"@babel/code-frame": "7.0.0-beta.39",
"@babel/core": "7.0.0-beta.39",
"@babel/generator": "7.0.0-beta.39",
"@babel/helper-annotate-as-pure": "7.0.0-beta.39",
"@babel/helper-bindify-decorators": "7.0.0-beta.39",
"@babel/helper-builder-binary-assignment-operator-visitor": "7.0.0-beta.39",
"@babel/helper-builder-react-jsx": "7.0.0-beta.39",
"@babel/helper-call-delegate": "7.0.0-beta.39",
"@babel/helper-define-map": "7.0.0-beta.39",
"@babel/helper-explode-assignable-expression": "7.0.0-beta.39",
"@babel/helper-explode-class": "7.0.0-beta.39",
"@babel/helper-fixtures": "7.0.0-beta.39",
"@babel/helper-function-name": "7.0.0-beta.39",
"@babel/helper-get-function-arity": "7.0.0-beta.39",
"@babel/helper-hoist-variables": "7.0.0-beta.39",
"@babel/helper-module-imports": "7.0.0-beta.39",
"@babel/helper-module-transforms": "7.0.0-beta.39",
"@babel/helper-optimise-call-expression": "7.0.0-beta.39",
"@babel/helper-plugin-test-runner": "7.0.0-beta.39",
"@babel/helper-regex": "7.0.0-beta.39",
"@babel/helper-remap-async-to-generator": "7.0.0-beta.39",
"@babel/helper-replace-supers": "7.0.0-beta.39",
"@babel/helper-simple-access": "7.0.0-beta.39",
"@babel/helper-transform-fixture-test-runner": "7.0.0-beta.39",
"@babel/helper-wrap-function": "7.0.0-beta.39",
"@babel/helpers": "7.0.0-beta.39",
"@babel/node": "7.0.0-beta.39",
"@babel/plugin-codemod-optional-catch-binding": "7.0.0-beta.39",
"@babel/plugin-external-helpers": "7.0.0-beta.39",
"@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.39",
"@babel/plugin-proposal-class-properties": "7.0.0-beta.39",
"@babel/plugin-proposal-decorators": "7.0.0-beta.39",
"@babel/plugin-proposal-do-expressions": "7.0.0-beta.39",
"@babel/plugin-proposal-export-default-from": "7.0.0-beta.39",
"@babel/plugin-proposal-export-namespace-from": "7.0.0-beta.39",
"@babel/plugin-proposal-function-bind": "7.0.0-beta.39",
"@babel/plugin-proposal-function-sent": "7.0.0-beta.39",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-beta.39",
"@babel/plugin-proposal-numeric-separator": "7.0.0-beta.39",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.39",
"@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.39",
"@babel/plugin-proposal-optional-chaining": "7.0.0-beta.39",
"@babel/plugin-proposal-pipeline-operator": "7.0.0-beta.39",
"@babel/plugin-proposal-throw-expressions": "7.0.0-beta.39",
"@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.39",
"@babel/plugin-syntax-async-generators": "7.0.0-beta.39",
"@babel/plugin-syntax-class-properties": "7.0.0-beta.39",
"@babel/plugin-syntax-decorators": "7.0.0-beta.39",
"@babel/plugin-syntax-do-expressions": "7.0.0-beta.39",
"@babel/plugin-syntax-dynamic-import": "7.0.0-beta.39",
"@babel/plugin-syntax-export-default-from": "7.0.0-beta.39",
"@babel/plugin-syntax-export-namespace-from": "7.0.0-beta.39",
"@babel/plugin-syntax-flow": "7.0.0-beta.39",
"@babel/plugin-syntax-function-bind": "7.0.0-beta.39",
"@babel/plugin-syntax-function-sent": "7.0.0-beta.39",
"@babel/plugin-syntax-import-meta": "7.0.0-beta.39",
"@babel/plugin-syntax-jsx": "7.0.0-beta.39",
"@babel/plugin-syntax-nullish-coalescing-operator": "7.0.0-beta.39",
"@babel/plugin-syntax-numeric-separator": "7.0.0-beta.39",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.39",
"@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.39",
"@babel/plugin-syntax-optional-chaining": "7.0.0-beta.39",
"@babel/plugin-syntax-pipeline-operator": "7.0.0-beta.39",
"@babel/plugin-syntax-throw-expressions": "7.0.0-beta.39",
"@babel/plugin-syntax-typescript": "7.0.0-beta.39",
"@babel/plugin-transform-arrow-functions": "7.0.0-beta.39",
"@babel/plugin-transform-async-to-generator": "7.0.0-beta.39",
"@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.39",
"@babel/plugin-transform-block-scoping": "7.0.0-beta.39",
"@babel/plugin-transform-classes": "7.0.0-beta.39",
"@babel/plugin-transform-computed-properties": "7.0.0-beta.39",
"@babel/plugin-transform-destructuring": "7.0.0-beta.39",
"@babel/plugin-transform-duplicate-keys": "7.0.0-beta.39",
"@babel/plugin-transform-eval": "7.0.0-beta.39",
"@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.39",
"@babel/plugin-transform-flow-comments": "7.0.0-beta.39",
"@babel/plugin-transform-flow-strip-types": "7.0.0-beta.39",
"@babel/plugin-transform-for-of": "7.0.0-beta.39",
"@babel/plugin-transform-function-name": "7.0.0-beta.39",
"@babel/plugin-transform-instanceof": "7.0.0-beta.39",
"@babel/plugin-transform-jscript": "7.0.0-beta.39",
"@babel/plugin-transform-literals": "7.0.0-beta.39",
"@babel/plugin-transform-member-expression-literals": "7.0.0-beta.39",
"@babel/plugin-transform-modules-amd": "7.0.0-beta.39",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.39",
"@babel/plugin-transform-modules-systemjs": "7.0.0-beta.39",
"@babel/plugin-transform-modules-umd": "7.0.0-beta.39",
"@babel/plugin-transform-new-target": "7.0.0-beta.39",
"@babel/plugin-transform-object-assign": "7.0.0-beta.39",
"@babel/plugin-transform-object-set-prototype-of-to-assign": "7.0.0-beta.39",
"@babel/plugin-transform-object-super": "7.0.0-beta.39",
"@babel/plugin-transform-parameters": "7.0.0-beta.39",
"@babel/plugin-transform-property-literals": "7.0.0-beta.39",
"@babel/plugin-transform-property-mutators": "7.0.0-beta.39",
"@babel/plugin-transform-proto-to-assign": "7.0.0-beta.39",
"@babel/plugin-transform-react-constant-elements": "7.0.0-beta.39",
"@babel/plugin-transform-react-display-name": "7.0.0-beta.39",
"@babel/plugin-transform-react-inline-elements": "7.0.0-beta.39",
"@babel/plugin-transform-react-jsx": "7.0.0-beta.39",
"@babel/plugin-transform-react-jsx-compat": "7.0.0-beta.39",
"@babel/plugin-transform-react-jsx-self": "7.0.0-beta.39",
"@babel/plugin-transform-react-jsx-source": "7.0.0-beta.39",
"@babel/plugin-transform-regenerator": "7.0.0-beta.39",
"@babel/plugin-transform-reserved-words": "7.0.0-beta.39",
"@babel/plugin-transform-runtime": "7.0.0-beta.39",
"@babel/plugin-transform-shorthand-properties": "7.0.0-beta.39",
"@babel/plugin-transform-spread": "7.0.0-beta.39",
"@babel/plugin-transform-sticky-regex": "7.0.0-beta.39",
"@babel/plugin-transform-strict-mode": "7.0.0-beta.39",
"@babel/plugin-transform-template-literals": "7.0.0-beta.39",
"@babel/plugin-transform-typeof-symbol": "7.0.0-beta.39",
"@babel/plugin-transform-typescript": "7.0.0-beta.39",
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.39",
"@babel/polyfill": "7.0.0-beta.39",
"@babel/preset-env": "7.0.0-beta.39",
"@babel/preset-env-standalone": "7.0.0-beta.39",
"@babel/preset-flow": "7.0.0-beta.39",
"@babel/preset-react": "7.0.0-beta.39",
"@babel/preset-stage-0": "7.0.0-beta.39",
"@babel/preset-stage-1": "7.0.0-beta.39",
"@babel/preset-stage-2": "7.0.0-beta.39",
"@babel/preset-stage-3": "7.0.0-beta.39",
"@babel/preset-typescript": "7.0.0-beta.39",
"@babel/register": "7.0.0-beta.39",
"@babel/runtime": "7.0.0-beta.39",
"@babel/standalone": "7.0.0-beta.39",
"@babel/template": "7.0.0-beta.39",
"@babel/traverse": "7.0.0-beta.39",
"@babel/types": "7.0.0-beta.39",
"babel-loader": "^8.0.0-beta.0",
"rollup-plugin-babel": "^4.0.0-beta.2",
}
`;
exports[`webpack v1 compatibility 1`] = `
Object {
"devDependencies": Object {
"@babel/core": "7.0.0-beta.40",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"babel-core": "^7.0.0-bridge.0",
"babel-loader": "7.1.1",
"webpack": "^1.15.0",
},
"name": "webpack-v1-compatibility",
}
`;