You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -209,13 +209,13 @@ See the [Mux-Node docs](https://muxinc.github.io/mux-node-sdk/identifiers.html)
209
209
210
210
## Development
211
211
212
-
Run unit tests: `npm test` or `npm run test:unit`
212
+
Run unit tests: `yarn test` or `yarn test:unit`
213
213
214
-
Run integration tests: `npm run test:int`
214
+
Run integration tests: `yarn test:int` - this will run integration tests with `nock` and `NOCK_BACK_MODE` set to `record`. This means that previously recorded API requests will be stubbed and any missing ones will be recorded.
215
215
216
-
**Note**: running the integration tests will require you to configure the `MUX_TOKEN_ID` and `MUX_TOKEN_SECRET` environment variables with your Mux access token and secret. You should use the credentials for [email protected], where we generate views for this purpose ("watch-this" project).
216
+
You can also run integration tests with real requests by running `yarn test:int:wild`. Make sure you have `MUX_TOKEN_ID` and `MUX_TOKEN_SECRET`set as environment variables so your requests are authenticated. This is useful to run locally to verify that actual API requests work as expected. When running the whole suite locally you might run into Mux API rate limits so keep that in mind.
217
217
218
-
Integration tests do not get run on CI because of Mux API rate limits, so run them locally.
218
+
**Pro Tip** Use mocha `-g` option to run only a specific test or group of tests. For example: `yarn test -g 'creates a new Assets'`.
it('Returns the overall value for a specific metric, as well as the total view count, watch time, and the Mux Global metric value for the metric',async()=>{
it('Returns the overall value for a specific metric, as well as the total view count, watch time, and the Mux Global metric value for the metric',async()=>{
it('List timeseries information for the playback-failure-percentage metric along with the number of concurrent viewers for the Windows operating system in the US',async()=>{
0 commit comments