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
test({code: 'export default \'foo\'',errors: [{message: 'Assign literal to a variable before exporting as module default'}]}),
44
48
test({code: 'export default `foo`',errors: [{message: 'Assign literal to a variable before exporting as module default'}]}),
45
49
test({code: 'export default {}',errors: [{message: 'Assign object to a variable before exporting as module default'}]}),
50
+
test({code: 'export default foo(bar)',options: [{allowCallExpression: false}],errors: [{message: 'Assign call result to a variable before exporting as module default'}]}),
46
51
47
52
// Test failure with non-covering exception
48
53
test({code: 'export default 123',options: [{allowObject: true}],errors: [{message: 'Assign literal to a variable before exporting as module default'}]}),
0 commit comments