Skip to content

Commit

Permalink
fix(js): fix end to end tests (#1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoaguirre authored Jan 18, 2025
1 parent a835c64 commit 3a30f31
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,24 @@ jobs:
name: Run e2e tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
- name: Set up node v20
uses: actions/setup-node@v4
with:
node-version: 21.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run build script
run: pnpm build
- name: Run pack:all script
run: pnpm pack:all
- name: Run js tests
run: pnpm test:js
- name: Run e2e tests
run: pnpm test:e2e
- name: Validate working directory is clean
run: .github/workflows/scripts/ensure-clean-working-tree.sh
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
- name: Set up node v20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run build script
run: pnpm build
- name: Run pack:all script
run: pnpm pack:all
- name: Install local Genkit
run: pnpm link ./js/genkit
- name: Run js tests
run: pnpm test:js
- name: Run e2e tests
run: pnpm test:e2e
- name: Validate working directory is clean
run: .github/workflows/scripts/ensure-clean-working-tree.sh
2 changes: 1 addition & 1 deletion tests/test_js_app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const testFlow = ai.defineFlow(
);

// genkit flow:run streamy 5 -s
export const streamy = ai.defineStreamingFlow(
export const streamy = ai.defineFlow(
{
name: 'streamy',
inputSchema: z.number(),
Expand Down

0 comments on commit 3a30f31

Please sign in to comment.