streamlit / component-template

Templates and example code for creating Streamlit Components
https://streamlit.io
Apache License 2.0
462 stars 227 forks source link

Include tests #22

Closed Industrial closed 1 year ago

Industrial commented 2 years ago

Hi.

The component template does not include tests. Please add one to verify that running tests works (it doesn't).

Running tests I get errors here:

node_modules/streamlit-component-lib/dist/index.js:17
    export { StreamlitComponentBase, withStreamlitConnection } from "./StreamlitReact";
    ^^^^^^

    SyntaxError: Unexpected token 'export'

Using ts-node.

sfc-gh-kbregula commented 1 year ago

We added tests to CI that check if the project builds in the latest versions of NodeJS. We have also started working on adding E2E tests to add even more confidence in our templates.