Skip to content

Commit c000412

Browse files
committed
tests: do not silently log failed beforeAll
ref 3efc733
1 parent 85a9d43 commit c000412

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

packages/neovim/src/attach/attach.test.ts

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,16 @@ describe('Nvim API', () => {
3838
}
3939

4040
beforeAll(async () => {
41-
try {
42-
proc = startNvim();
41+
proc = startNvim();
4342

44-
nvim = attach({ proc });
45-
nvim.on('request', (method, args, resp) => {
46-
requests.push({ method, args });
47-
resp.send(`received ${method}(${args})`);
48-
});
49-
nvim.on('notification', (method, args) => {
50-
notifications.push({ method, args });
51-
});
52-
} catch (err) {
53-
// eslint-disable-next-line no-console
54-
console.log(err);
55-
}
43+
nvim = attach({ proc });
44+
nvim.on('request', (method, args, resp) => {
45+
requests.push({ method, args });
46+
resp.send(`received ${method}(${args})`);
47+
});
48+
nvim.on('notification', (method, args) => {
49+
notifications.push({ method, args });
50+
});
5651
});
5752

5853
afterAll(() => {

0 commit comments

Comments
 (0)