Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airtoxin/astronautica
postman alternative with better scripting experience
https://github.com/airtoxin/astronautica
Last synced: about 11 hours ago
JSON representation
postman alternative with better scripting experience
- Host: GitHub
- URL: https://github.com/airtoxin/astronautica
- Owner: airtoxin
- Created: 2021-12-13T08:54:17.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T03:08:21.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T08:13:18.369Z (7 months ago)
- Language: TypeScript
- Size: 4.19 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astronautica
## 📦 Install
```shell
npm install -D astronautica
# or using yarn
# yarn add -D astronautica
```## ⚙️ Usage
```shell
# Open Astronautica devtool
yarn astro open
# Run test
yarn astro run
``````typescript
import { request } from "@astronautica/core";
describe("My API v3", () => {
it("List users", async () => {
await request("/path/to/api", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ hello: "world!" }),
}).test((res) => {
expect(res.status).toBe(200);
});
});
});
```## ⚒️ Development
```shell
yarn
yarn dev
```