Rei-x / xstate-screenshot

Lib for converting xstate machine to image
https://xstate-screenshot.vercel.app
1 stars 0 forks source link

Add tests for xstate-screenshot #5

Open sweep-ai[bot] opened 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR adds tests for the xstate-screenshot library. The tests cover the functions in the xstate-screenshot/bin.ts and xstate-screenshot/index.ts files.

The following changes were made:

Summary

This PR adds comprehensive tests for the xstate-screenshot library. The tests ensure that the functions in the bin.ts and index.ts files are working as expected. By adding these tests, we can catch any potential bugs or issues in the codebase and ensure the reliability of the library.

Fixes #4.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-tests-for-xstate-screenshot

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xstate-screenshot ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2023 9:45am
Rei-x commented 1 year ago

write real tests, not fake ones

Rei-x commented 1 year ago

read file content from xstate-screenshot/bin.ts and xstate-screenshot/index.ts and write real tests for them

Rei-x commented 1 year ago

write github actions workflow to run those tests

sweep-ai[bot] commented 1 year ago

GitHub actions yielded the following error.

The relevant lines from the logs corresponding to the error are:

npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-08-04T09_39_50_042Z-debug.log

The command that failed is npm ci.

This is likely a linting or type-checking issue with the source code.

Rei-x commented 1 year ago

rember to go into correct directory in github workflow

sweep-ai[bot] commented 1 year ago

GitHub actions yielded the following error.

The relevant lines from the logs corresponding to the error are:

npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-08-04T09_44_49_516Z-debug.log

The command that failed is npm ci.

This is likely a linting or type-checking issue with the source code.