Given the file:
export default class MyClass {
// MyClass implementation
}
The parsed File object has following declarations:
[
DefaultDeclaration: {
isExported: true,
exportedDeclaration: self
},
ClassDeclaration (MyClass): {
isExported: false
}
]
Expected:
- ClassDeclaration.isExported to be true
- DefaultDeclaration.exportedDeclaration to be MyClass declaration
Given the file:
The parsed File object has following declarations:
Expected: