Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
test: remove eden for vercel deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
syhner committed Mar 25, 2024
1 parent aa18dd6 commit 1688597
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"dependencies": {
"@auth/core": "^0.14.0",
"@auth/drizzle-adapter": "^0.3.2",
"@elysiajs/eden": "^1.0.5",
"@elysiajs/html": "^1.0.2",
"@elysiajs/static": "^1.0.2",
"@elysiajs/swagger": "^1.0.3",
Expand Down
12 changes: 6 additions & 6 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, it } from 'bun:test';
import { caller } from '~/index';
// import { describe, expect, it } from 'bun:test';
// import { caller } from '~/index';

it('ping endpoint returns pong (via caller)', async () => {
const { data } = await caller.api.ping.get();
// it('ping endpoint returns pong (via caller)', async () => {
// const { data } = await caller.api.ping.get();

expect(data).toBe('pong');
});
// expect(data).toBe('pong');
// });
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { treaty } from '@elysiajs/eden';
// import { treaty } from '@elysiajs/eden';

import staticPlugin from '@elysiajs/static';
import { app } from './app';
import { env } from './env';
Expand All @@ -21,4 +22,4 @@ server.listen({ port: env.PORT }, ({ hostname, port }) => {
console.log(`🦊 Elysia is running at ${url}://${hostname}:${port}`);
});

export const caller = treaty(server);
// export const caller = treaty(server);

0 comments on commit 1688597

Please sign in to comment.