tangled
alpha
login
or
join now
tylur.dev
/
prototypey
prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork
atom
overview
issues
pulls
pipelines
formatting
Tyler
3 months ago
c7d065a5
0eae9417
+8
-6
3 changed files
expand all
collapse all
unified
split
.prettierignore
packages
cli
tests
test-utils.ts
site
tests
components
Playground.test.tsx
+3
-2
.prettierignore
···
1
-
/lib
2
-
/pnpm-lock.yaml
0
···
1
+
lib/
2
+
dist/
3
+
pnpm-lock.yaml
+4
-1
packages/cli/tests/test-utils.ts
···
7
options?: { cwd?: string; env?: NodeJS.ProcessEnv },
8
): Promise<{ stdout: string; stderr: string; code: number }> {
9
return new Promise((resolve) => {
10
-
const cliPath = join(dirname(fileURLToPath(import.meta.url)), "../lib/index.js");
0
0
0
11
const child = spawn("node", [cliPath, ...args], {
12
cwd: options?.cwd ?? process.cwd(),
13
env: options?.env ?? process.env,
···
7
options?: { cwd?: string; env?: NodeJS.ProcessEnv },
8
): Promise<{ stdout: string; stderr: string; code: number }> {
9
return new Promise((resolve) => {
10
+
const cliPath = join(
11
+
dirname(fileURLToPath(import.meta.url)),
12
+
"../lib/index.js",
13
+
);
14
const child = spawn("node", [cliPath, ...args], {
15
cwd: options?.cwd ?? process.cwd(),
16
env: options?.env ?? process.env,
+1
-3
packages/site/tests/components/Playground.test.tsx
···
84
const editors = screen.getAllByTestId("monaco-editor");
85
const inputEditor = editors[0] as HTMLTextAreaElement;
86
87
-
expect(inputEditor.value).toContain(
88
-
'lx.lexicon("app.bsky.actor.profile"',
89
-
);
90
});
91
92
it("evaluates code and displays output", async () => {
···
84
const editors = screen.getAllByTestId("monaco-editor");
85
const inputEditor = editors[0] as HTMLTextAreaElement;
86
87
+
expect(inputEditor.value).toContain('lx.lexicon("app.bsky.actor.profile"');
0
0
88
});
89
90
it("evaluates code and displays output", async () => {