Update response status TypeScript response.statusCode = 201 JavaScript response.statusCode = 201 Perform additional assertions In certain cases you might want to run additional assertion as part of your teardown script. TypeScript import { expect } from 'expect' expect(response.body).toBe('myString') JavaScript const { expect } = require('expect') expect(response.body).toBe('myString') This can come in handy when the main assertions of the API check are not fine-grained enough, or when you wa...| www.checklyhq.com
Here are some examples on how to address common authentication use cases with setup scripts. Using Vercel deployment protection? Read this section on how to make this work with Checkly. Fetch an external token TypeScript import axios from 'axios' // use 'await' on an axios HTTP get to fetch a token from a location const { data } = await axios.get('https://example.com/api/token') // add the token as a query parameters request.queryParameters['token'] = data.token JavaScript const axios = requi...| www.checklyhq.com
Code-first synthetic monitoring platform for modern development teams. Monitor APIs, web apps, and user journeys with Playwright-powered browser checks, monitoring as code workflows, and seamless CI/CD integration.| www.checklyhq.com
Monitoring as code workflow for developers: programmable, fast, reliable.| www.checklyhq.com