Skip to content

Commit

Permalink
fix(ui/testing): quirk in ast parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Apr 12, 2024
1 parent 69e1664 commit dbb5148
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/testing/specs/astParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,19 +382,19 @@ export function readAstJson (ctx) {
declaration.type === 'FunctionDeclaration'
|| declaration.type === 'ArrowFunctionExpression'
) {
json.defaultExport = true
json.functions.default = {
...parseFunction({ declaration, isExported: false }),
...parseFunction({ declaration, isExported: false }).def,
accessor: ctx.pascalName
}
json.defaultExport = true
}
// export default class X {}
else if (declaration.type === 'ClassDeclaration') {
json.defaultExport = true
json.classes.default = {
...parseClass({ declaration, isExported: false }),
...parseClass({ declaration, isExported: false }).def,
accessor: ctx.pascalName
}
json.defaultExport = true
}
})

Expand Down

0 comments on commit dbb5148

Please sign in to comment.