We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7618c15 commit fc47dc9Copy full SHA for fc47dc9
packages/plugins/hive/tests/hive.test.ts
@@ -3,15 +3,18 @@ import useMeshHive from '../src';
3
describe('Hive', () => {
4
it('does not hook into Node.js process', () => {
5
const spy = jest.spyOn(process, 'once');
6
- useMeshHive({
+ const plugin = useMeshHive({
7
enabled: true,
8
token: 'FAKE_TOKEN',
9
- }).onPluginInit?.({
+ });
10
+ plugin.onPluginInit?.({
11
addPlugin: jest.fn(),
12
plugins: [],
13
setSchema: jest.fn(),
14
registerContextErrorHandler: jest.fn(),
15
});
16
expect(spy).not.toHaveBeenCalled();
17
+ // @ts-expect-error - ignore
18
+ return plugin.onDispose();
19
20
0 commit comments