2
0

ci: 🔨 Run Playwright tests on pull request

This commit is contained in:
Baptiste Arnaud
2022-06-16 11:40:13 +02:00
parent 6f4267e7e2
commit 8358de1dab
2 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@ import { rest, setupWorker } from 'msw'
import { setupServer } from 'msw/node'
const handlers = () => [
rest.get('http://localhost:3000/api/auth/session', (req, res, ctx) => {
rest.get('/api/auth/session', (req, res, ctx) => {
const authenticatedUser = JSON.parse(
typeof localStorage !== 'undefined'
? (localStorage.getItem('authenticatedUser') as string)