Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 726 Bytes

File metadata and controls

25 lines (17 loc) · 726 Bytes

Simple workflow file

This directory contains a simple workflow that uses curl to make an "api" call

Running tests

Without log file

npm test

With log file

ACT_LOG=true npm test

The above produces a log file called mock-api.log

Testing Strategy

Sometimes our api's might have strict rate limits or might return dynamically data. To avoid all this we will mock this api call Steps (refer to action.test.ts for implementation):

  1. Create a local git repository using mock-github and initialize it whatever files we need along with .github directory
  2. Use act-js to run the workflow inside the local git repository and compare expected output. Make sure to mock the api