Skip to content

Commit bf983d7

Browse files
committed
test: fix objectSpread test
In babel 7.5.x releases, something has changed in the objec spread plugin, the helper now may be inlined rather than imported, so we now only check for the invocation in the test.
1 parent 3c65e8d commit bf983d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/babel-preset-app/__tests__/babel-preset.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ test('object spread', () => {
8686
const { code } = babel.transformSync(`
8787
const a = { ...b }
8888
`.trim(), defaultOptions)
89-
expect(code).toMatch(`import _objectSpread from`)
89+
// expect(code).toMatch(`import _objectSpread from`)
9090
expect(code).toMatch(`var a = _objectSpread({}, b)`)
9191
})
9292

0 commit comments

Comments
 (0)