Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Dec 9, 2022
1 parent 4dd31c5 commit d2c99f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion check-exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
for e in exports:
m = match("^export { default as (.*) } from '(.*)';$", e)
if not m:
# allow export * for modules that have multiple exports
if match("^export \* from '(.*)';$", e): continue
print(f'Line "{e}" is not a valid export!')
exit(1)

Expand All @@ -20,7 +22,7 @@
exportNames.add(g[0])

# verify that all helpers are exported (except the ignored ones)
ignored = set(['common', 'index.ts', 'tsconfig.json'])
ignored = set(['common', 'go', 'index.ts', 'tsconfig.json'])
srcFolders = set(listdir('src'))
diff = srcFolders.difference(ignored.union(exportNames))
if len(diff) != 0:
Expand Down

0 comments on commit d2c99f5

Please sign in to comment.