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
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