File tree Expand file tree Collapse file tree 5 files changed +24
-1
lines changed
packages/opencode/test/script Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 11sst-env.d.ts
22packages /desktop /src /bindings.ts
3+ packages /app /src /custom-elements.d.ts
4+ packages /enterprise /src /custom-elements.d.ts
Original file line number Diff line number Diff line change 1+ import { expect , test } from "bun:test"
2+ import fs from "fs/promises"
3+ import path from "path"
4+
5+ test ( "ignores custom element pointer files during format" , async ( ) => {
6+ const file = path . resolve ( import . meta. dir , "../../../../.prettierignore" )
7+ const text = await fs . readFile ( file , "utf8" )
8+
9+ expect ( text ) . toContain ( "packages/app/src/custom-elements.d.ts" )
10+ expect ( text ) . toContain ( "packages/enterprise/src/custom-elements.d.ts" )
11+ } )
Original file line number Diff line number Diff line change 1+ import { expect , test } from "bun:test"
2+ import { format } from "../../../../script/generate-lib"
3+
4+ test ( "runs the format script through bun" , ( ) => {
5+ expect ( format ( ) ) . toEqual ( [ "bun" , "./script/format.ts" ] )
6+ } )
Original file line number Diff line number Diff line change 1+ export function format ( ) {
2+ return [ "bun" , "./script/format.ts" ] as const
3+ }
Original file line number Diff line number Diff line change 11#!/usr/bin/env bun
22
33import { $ } from "bun"
4+ import { format } from "./generate-lib"
45
56await $ `bun ./packages/sdk/js/script/build.ts`
67
78await $ `bun dev generate > ../sdk/openapi.json` . cwd ( "packages/opencode" )
89
9- await $ `./script/ format.ts `
10+ await $ `${ format ( ) } `
You can’t perform that action at this time.
0 commit comments