Install the AWS X-Ray daemon as documented here.
Run the X-Ray daemon using the following arguments:
$ ./xray -b 0.0.0.0:2000 -t 0.0.0.0:2000 -o -l dev -n <your region>
Ensure that you have an IAM environment that allows sending to X-Ray. Configure via the AWS CLI by running aws configure
.
Run the test as follows:
$ npm i
$ npm run test