fix: type null
is not assignable to type IContent
#83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
type 'null' is not assignable to type 'IContent'
errorpackages/main-library/src/__tests__/index.test.ts
to test this changeTest
Test steps
nvm use 16.14.2
to switch to Node version 16.14.2 (install it usingnvm
if it's not installed yet)yarn test
to run the test filesyarn build
to build the packageExpected results
Further comments
The GH actions tests are failing because the tests are being run on the last commit (which is a broken commit).
To run it on the last commit, follow the steps:
1- reset “develop” branch to latest working commit (1dac19b)
2- sync your “develop” and “main” branch
3- merge this PR. It will be merged to the “develop” branch
Now, the tests should pass; because I ran GH actions on my bug reproduction environment