tangled
alpha
login
or
join now
besaid.zone
/
create-atproto-app
2
fork
atom
A CLI for scaffolding ATProto web applications
2
fork
atom
overview
issues
pulls
pipelines
add build step
besaid.zone
1 month ago
244eb6de
9ec8b2ad
verified
This commit was signed with the committer's
known signature
.
besaid.zone
SSH Key Fingerprint:
SHA256:Q4dc5PTI8DNTxJbH2bWsDeY6BXzfq0ce1XSA4H5Y3iI=
0/1
test.yml
failed
29s
+9
-5
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
test.yml
__tests__
cli.test.ts
+3
.tangled/workflows/test.yml
···
16
16
- name: install
17
17
command: pnpm i --frozen-lockfile
18
18
19
19
+
- name: build
20
20
+
command: pnpm build
21
21
+
19
22
- name: test
20
23
command: pnpm test:run
+6
-5
__tests__/cli.test.ts
···
1
1
+
import type { SyncOptions } from "execa";
2
2
+
3
3
+
import { execaCommandSync } from "execa";
1
4
import { join } from "node:path";
2
5
import { expect, test } from "vitest";
3
3
-
import type { SyncOptions } from "execa"
4
4
-
import {execaCommandSync} from "execa"
5
6
6
7
const CLI_PATH = join(import.meta.dirname, "..");
7
8
8
9
async function run(args: string[], options?: SyncOptions) {
9
10
return execaCommandSync(`node ${CLI_PATH} ${args.join(" ")}`, {
10
10
-
env: { ...process.env, _VITE_TEST_CLI: 'true' },
11
11
-
...options
12
12
-
})
11
11
+
env: { ...process.env, _VITE_TEST_CLI: "true" },
12
12
+
...options,
13
13
+
});
13
14
}
14
15
15
16
test("should prompt for project name", async () => {