Skip to content

Commit

Permalink
Disable CSS logs and MSW warnings in tests
Browse files Browse the repository at this point in the history
Also remove unneeded timeout from tests
  • Loading branch information
mrkvon committed Nov 2, 2024
1 parent 4e2e311 commit a0d0e25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/koa/src/tests/identity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ beforeAll(async () => {
css = await new AppRunner().create({
shorthand: {
port: 4000,
// loggingLevel: 'off',
loggingLevel: 'off',
seedConfig: joinFilePath(__dirname, './css-pod-seed.json'), // set up some Solid accounts
},
})
Expand Down Expand Up @@ -115,7 +115,7 @@ describe('Solid identity', () => {
const baseUrl = 'http://localhost:3000'

const identityServer = setupIdentityServer({ webId, provider: baseUrl })
identityServer.listen()
identityServer.listen({ onUnhandledRequest: 'bypass' })
const app = setupServer(webId, baseUrl)
const server = await startServer(app, 3000)
// check .well-known endpoint
Expand Down Expand Up @@ -182,7 +182,7 @@ describe('Solid identity', () => {
expect(authenticatedResponse.ok).toEqual(true)
// stop the server
await stopServer(server)
}, 10000)
})

test('Fetch protected data from CSS with custom webId identity', async () => {
// set up the koa service and soid middleware
Expand All @@ -195,7 +195,7 @@ describe('Solid identity', () => {
provider: 'http://localhost:3000',
})

identityServer.listen()
identityServer.listen({ onUnhandledRequest: 'bypass' })

// setup some data on the server
const person = await getDefaultPerson(
Expand Down

0 comments on commit a0d0e25

Please sign in to comment.