Skip to content

Commit 96ae102

Browse files
committed
fix path for loading test_service proto
1 parent c4d7fab commit 96ae102

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/grpc-js/test/test-server.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,12 @@ import { ProtoGrpcType as TestServiceGrpcType } from './generated/test_service';
3535
import { Request__Output } from './generated/Request';
3636
import { CompressionAlgorithms } from '../src/compression-algorithms';
3737

38-
const loadedTestServiceProto = protoLoader.loadSync('test/fixtures/test_service.proto', {
38+
const loadedTestServiceProto = protoLoader.loadSync(path.join(__dirname, 'fixtures/test_service.proto'), {
3939
keepCase: true,
4040
longs: String,
4141
enums: String,
4242
defaults: true,
43-
oneofs: true,
44-
includeDirs: [
45-
`${__dirname}/../../proto`
46-
]
43+
oneofs: true
4744
});
4845

4946
const testServiceGrpcObject = grpc.loadPackageDefinition(loadedTestServiceProto) as unknown as TestServiceGrpcType;

0 commit comments

Comments
 (0)