Skip to content

Commit

Permalink
chore(deps): update devdependency prettier to v3 (#33)
Browse files Browse the repository at this point in the history
* chore(deps): update devdependency prettier to v3

* fix linter

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tobias Diez <code@tobiasdiez.com>
  • Loading branch information
renovate[bot] and tobiasdiez committed Aug 23, 2023
1 parent 01c7834 commit e4b6d52
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
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

0 comments on commit e4b6d52

Please sign in to comment.