File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,11 @@ jobs:
2828 sqlc-version : ' 1.27.0'
2929 - uses : oven-sh/setup-bun@v2
3030 - run : wget https://github.com/bytecodealliance/javy/releases/download/v4.0.0/javy-x86_64-linux-v4.0.0.gz
31- - run : gzip -d javy-x86_64-linux-v4.0.0.gz
32- - run : chmod +x javy-x86_64-linux-v4.0.0
31+ - run : gzip -d javy-x86_64-linux-v4.0.0.gz -c > ./javy
32+ - run : chmod +x ./javy
3333 - run : bun install
34- - run : bun build --entrypoints ./src/app.ts --outfile=out.js --minify --target browser
35- - run : ./javy-x86_64-linux-v4.0.0 build out.js -o plugin.wasm
3634 - name : Run tests
37- run : cd test && bun run test
35+ run : bun run test
3836 - id : calculate_sha256
3937 run : |
4038 sha256sum plugin.wasm > plugin.wasm.sha256
Original file line number Diff line number Diff line change 11import { expect , it , describe } from "bun:test" ;
2- import { db , prepare , sql } from "../case" ;
3- import { aggEmails } from "./aggregate_sql" ;
4-
2+ import { db , gen , prepare , sql } from "../case" ;
53await prepare ( sql `
64 -- name: AggEmails :one
75 SELECT array_agg(e.id::text)::text[] AS emails FROM emails e;
86` ) ;
97
108describe ( "aggregation" , ( ) => {
119 it ( "returns an array type" , async ( ) => {
12- // this should not have any LSP error
13- const result = ( await aggEmails ( db ) ) as string [ ] ;
10+ const result = await gen ( ) . aggEmails ( db ) ;
1411
1512 expect ( result ) . toHaveLength ( 3 ) ;
1613 expect ( Array . isArray ( result ) ) . toBe ( true ) ;
You can’t perform that action at this time.
0 commit comments