Skip to content

Commit

Permalink
feat: docs env
Browse files Browse the repository at this point in the history
  • Loading branch information
ASaiAnudeep committed Mar 28, 2024
1 parent 848c620 commit e78bf8b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const config = defineConfig({
},
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2023'
copyright: 'Copyright © 2024'
},
},
markdown: {
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/component-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Component testing is defined as a software testing type, in which the testing is performed on each component (or service) separately without integrating with other components (or services).

These tests are all about testing the functionality of individual service. During this, your service will be trying to interact with external services. But instead of talking to real external services, they talk to mock servers and local databases.
These tests are all about testing the functionality of individual service. During this, your service will be trying to interact with external services. But instead of communicating with real external services, they interact with mock servers and local databases.

::: tip TIP
[Docker](https://www.docker.com) is great place to test your applications in isolation.
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/contract-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,5 @@ To access the backend API (swagger page), navigate to [http://localhost:8080/api
- Compatibility Results

::: warning WARNING
Contract Testing is still in experimental phase. We are expecting it to be officially supported in the second quarter of **2022**. 🤞
Contract Testing is still in beta phase.
:::
4 changes: 2 additions & 2 deletions docs/guides/environment-variables.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Environment Variables

PactumJS supports setting default values to configuration parameters via Environment variables.
PactumJS allows configurations to be defined through environment variables.


## List of Environment Variables
Expand All @@ -27,7 +27,7 @@ export PACTUM_MOCK_PORT=9001
export PACTUM_REQUEST_BASE_URL=https://example.com
```

Adding to .env file
Adding to `.env` file and read it through [dotenv](https://www.npmjs.com/package/dotenv) package.

```sh
# contents in .env file
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ features:
details: Rich set of features to test complex scenarios yet wrapped inside a lightweight npm package.
- title: 🧪 Clear & Comprehensive
details: Clear and simple API to write readable and maintainable component, contract and end-to-end integration tests.
footer: MIT Licensed | Copyright © 2023
footer: MIT Licensed | Copyright © 2024
---

<script setup>
Expand Down
1 change: 1 addition & 0 deletions docs/media/blogs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Blogs

- [PactumJS: A Next-Gen REST API Testing Tool](https://medium.com/@joaovitorcoelho10/pactumjs-a-next-gen-rest-api-testing-tool-ae88a9e51916) - João Coelho
- [API Automation With Pactum.JS](https://medium.com/@zinjurdepratik567/api-automation-with-pactum-js-3682c2d73845) - Pratik Zinjurde
- [Automated Tests For Strapi API using PactumJS](https://strapi.io/blog/how-to-create-automated-tests-for-strapi-api-using-pactum-js) - Ahmed Ayman
- [An Introduction to Contract Testing With PactumJS](https://www.applause.com/blog/contract-testing-with-pactumjs) - David Ruiz Hernandez
- [A Complete Guide to PactumJS](https://www.programsbuzz.com/article/complete-guide-pactumjs) - Moeen
Expand Down
1 change: 1 addition & 0 deletions docs/media/videos.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Videos

- [Mockserver in seconds using PactumJS TUTORIAL](https://www.youtube.com/watch?v=5vhAMpCgEuU) - Razvan Vancea
- [PactumJS Tutorial - Getting Started with API Automation Testing](https://www.youtube.com/watch?v=UHoxxgxB6t8) - Razvan Vancea
- [PactumJS and Cucumber - API Boilerplate Project Tutorial](https://www.youtube.com/watch?v=blaKAz5U4ew) - Razvan Vancea
- [Integrating Mochawesome HTML Reporter with PactumJS](https://youtu.be/2lNLN2QxDOk) - Razvan Vancea
Expand Down

0 comments on commit e78bf8b

Please sign in to comment.