To test that our SSI stack works between SSI-Service and Web5-JS I propose we create a new integration test package in Web5-JS that will work locally and with a github action.
An example of such a test would look like this:
```javascript
import axios from "axios";
import { VcApi } from '../src/vc-api.js';
describe("Simple VC Creation Integration Test", () => {
it("should have same VC equivalence", async () => {
const credentialSubject = { firstName: "alice" };
const web5Response = await vcApi.create(credentialSubject);
const ssiResponse = await axios.put("https://ssi.tbddev.org/v1/credentials", web5Response.vc);
const decodedWeb5VC = decode(await result.record?.data.json())
const decodedSsiServiceVC = decode(ssiResponse)
expect(decodedWeb5VC).toEqual(decodedSsiServiceVC);
});
// Add more tests...
});
```
## Simple VC Creation
```mermaid
sequenceDiagram
participant Web5 as Web5-JS
participant SSI as SSI-Service
Web5->>Web5: Create Signed VC
Web5->>SSI: Create Same Credential
SSI-->>Web5: Response
Web5->>Web5: Confirm Credential JWT matches