You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`"Starting from Babel 8.0.0, the 'transform' function expects a callback. If you need to call it synchronously, please use 'transformSync'."`,
190
+
);
191
+
});
196
192
197
193
it("transformFile",function(){
198
194
constoptions={
@@ -249,18 +245,15 @@ describe("api", function () {
249
245
expect(options).toEqual({babelrc: false});
250
246
});
251
247
252
-
(process.env.BABEL_8_BREAKING ? it : it.skip)(
253
-
"transformFromAst throws on undefined callback",
254
-
()=>{
255
-
constprogram="const identifier = 1";
256
-
constnode=parseSync(program);
257
-
expect(()=>
258
-
transformFromAst(node,program),
259
-
).toThrowErrorMatchingInlineSnapshot(
260
-
`"Starting from Babel 8.0.0, the 'transformFromAst' function expects a callback. If you need to call it synchronously, please use 'transformFromAstSync'."`,
261
-
);
262
-
},
263
-
);
248
+
itBabel8("transformFromAst throws on undefined callback",()=>{
249
+
constprogram="const identifier = 1";
250
+
constnode=parseSync(program);
251
+
expect(()=>
252
+
transformFromAst(node,program),
253
+
).toThrowErrorMatchingInlineSnapshot(
254
+
`"Starting from Babel 8.0.0, the 'transformFromAst' function expects a callback. If you need to call it synchronously, please use 'transformFromAstSync'."`,
255
+
);
256
+
});
264
257
265
258
it("transformFromAst should generate same code with different cloneInputAst",function(){
0 commit comments