Skip to content

Commit 1532cf9

Browse files
committed
ci(nestjs-json-rpc-sdk): exclude type-for-rpc from test run
1 parent bb102fb commit 1532cf9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
key: ${{ runner.os }}-nx-${{ steps.branch-names.outputs.current_branch }}
2929
- run: git branch --track main origin/master
3030
- name: Test and build
31-
run: npx nx affected -t test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,json-shared-type,database,@nestjs-json-api/source'
31+
run: npx nx affected -t test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,json-shared-type,database,@nestjs-json-api/source,type-for-rpc'
3232
- name: Save cached .nx
3333
id: cache-dependencies-save
3434
uses: actions/cache/save@v4

libs/json-rpc/nestjs-json-rpc/src/lib/modules/util/service/handler.service.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ describe('handler.service', () => {
254254
});
255255
} catch (e) {
256256
expect(e).toBeInstanceOf(RpcError);
257-
expect((e as RpcError).code).toBe(-32600);
257+
expect((e as RpcError).code).toBe(-32602);
258258
}
259259
});
260260
it('Should be other error error', async () => {

libs/json-rpc/nestjs-json-rpc/src/lib/modules/util/service/handler.service.ts

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export class HandlerService {
9999
id,
100100
};
101101
} catch (e) {
102-
console.log(e);
103102
if (e instanceof RpcError) {
104103
return fromRpcErrorToRpcErrorObject(e, id);
105104
}

0 commit comments

Comments
 (0)