Tests are implemented using the Mocha framework. You can run tests with commands in the repository root directory:
Install dependencies:
npm install
Run tests for all templates:
npm run test
Run tests only for Python templates:
npm run test-python-templates
Run tests only for Node templates:
npm run test-node-templates
To enable verbose output, add verbose: true
to the jest.config.js
file:
module.exports = {
// ...
+ verbose: true,
};
-
Templates are publishing automatically after committing to master branch or after merging pull requests. This happens with Github actions.
-
If you want to add some templates or rename some, you need to change all actor templates list on apify shared package.