/
index.test.ts
24 lines (23 loc) · 1.82 KB
/
index.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { test, expect } from "vitest";
import { execSync } from "child_process";
test("jacobmgevans-card inline snapshot", () => {
expect(execSync(`node ./dist/index.js`).toString()).toMatchInlineSnapshot(`
"┌─────────────────────────────────────────────────────────────────────────┐
│ │
│ Jacob Evans / jacobmgevans │
│ │
│ Work: FullStack Software Engineer │
│ Open Source: https://osrg.t3.gg/ & │
│ https://tutorial-quest.vercel.app/docs/en/tutorial-quest ⚛ │
│ │
│ Twitter: https://twitter.com/JacobMGEvans │
│ GitHub: https://github.com/JacobMGEvans │
│ LinkedIn: https://linkedin.com/in/jacob-m-g-evans │
│ Web: https://dev.to/jacobmgevans │
│ │
│ Card: npx @jacobmgevans/card (via GitHub Package Registry) │
│ │
└─────────────────────────────────────────────────────────────────────────┘
"
`);
});