Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update devdependency prettier to v3 #33

Merged
merged 3 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"graphql": "^16.8.0",
"h3": "^1.8.0",
"jest": "^29.6.3",
"prettier": "^2.8.8",
"prettier": "^3.0.2",
"standard-version": "^9.5.0",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ export interface H3HandlerOptions<TContext extends BaseContext> {

export function startServerAndCreateH3Handler(
server: ApolloServer<BaseContext>,
options?: H3HandlerOptions<BaseContext>
options?: H3HandlerOptions<BaseContext>,
): EventHandler
export function startServerAndCreateH3Handler<TContext extends BaseContext>(
server: ApolloServer<TContext>,
options: WithRequired<H3HandlerOptions<TContext>, 'context'>
options: WithRequired<H3HandlerOptions<TContext>, 'context'>,
): EventHandler
export function startServerAndCreateH3Handler<TContext extends BaseContext>(
server: ApolloServer<TContext>,
options?: H3HandlerOptions<TContext>
options?: H3HandlerOptions<TContext>,
): EventHandler {
server.startInBackgroundHandlingStartupErrorsByLoggingAndFailingAllRequests()

Expand Down
6 changes: 3 additions & 3 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('integration:apollo-server-h3', () => {
defineIntegrationTestSuite(
async (
serverOptions: ApolloServerOptions<BaseContext>,
testOptions?: CreateServerForIntegrationTestsOptions
testOptions?: CreateServerForIntegrationTestsOptions,
) => {
const app = createApp()
const apollo = new ApolloServer({
Expand All @@ -28,7 +28,7 @@ defineIntegrationTestSuite(
'/',
startServerAndCreateH3Handler(apollo, {
context: testOptions?.context,
})
}),
)

const httpServer = createServer(toNodeListener(app))
Expand All @@ -49,7 +49,7 @@ defineIntegrationTestSuite(
{
serverIsStartedInBackground: true,
noIncrementalDelivery: true,
}
},
)

// Stolen from apollo server integration tests
Expand Down