Skip to content

Commit f98c2e7

Browse files
committed
fix: satisfy the test runner tests
1 parent f0daf55 commit f98c2e7

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

packages/nitro/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export function withSentryConfig(config: NitroConfig, moduleOptions?: SentryNitr
2222
*/
2323
export function setupSentryNitroModule(
2424
config: NitroConfig,
25-
moduleOptions?: SentryNitroOptions,
26-
serverConfigFile?: string,
25+
_moduleOptions?: SentryNitroOptions,
26+
_serverConfigFile?: string,
2727
): NitroConfig {
2828
config.modules = config.modules || [];
2929
config.modules.push(createNitroModule());

packages/nitro/test/index.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Dummy test to satisfy the test runner
2+
import { describe, expect, test } from 'vitest';
3+
import * as NitroServer from '../src';
4+
5+
describe('Nitro SDK', () => {
6+
// This is a place holder test at best to satisfy the test runner
7+
test('exports client and server SDKs', () => {
8+
expect(NitroServer).toBeDefined();
9+
expect(NitroServer.init).toBeDefined();
10+
});
11+
});

packages/nitro/test/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../tsconfig.test.json"
3+
}

0 commit comments

Comments
 (0)