This is a repository for running the tests in the @types/html-to-text package. While the tests can be syntax checked in place, this provides the ability to run the tests.
- Clone the Definitely Typed repository. You can use the
partial clone instructions. Add
types/html-to-text
andtypes/nodemailer-html-to-text
to the clone. - Make the updates as usual.
- Run test and test-all.
- Check out this repository.
- Run
npm install
to get the latest dependencies. This assumes theDefinitelyTyped
repository is at the same directory level. If it is not, updatepackage.json
to point to the correct location. - Run
npm run reinit
to copyhtml-to-text-tests.ts
to this project. - Run
npm test
to build and run the test program. - If there are problems, the tests can be updated in either project.
- If the update is in this project, run
npm run push:test
to update the real copy and amend the commit to get the updated copy. - If the update is in the other project, run
npm run reinit:test
to get a fresh copy of the test code.
- If the update is in this project, run
- If the package files are updated, run
npm run reinit:package
to get a fresh copy of the package.