Turbo v2 (#32)

Updated to Turbo v2, and updated dependencies.
This commit is contained in:
Giancarlo Buomprisco
2024-06-06 15:36:16 +07:00
committed by GitHub
parent aba9076805
commit c9f0ec5d89
22 changed files with 399 additions and 709 deletions

View File

@@ -29,22 +29,22 @@ export default defineConfig({
screenshot: 'only-on-failure',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry'
trace: 'on-first-retry',
},
// test timeout set to 1 minutes
timeout: 60 * 1000,
expect: {
// expect timeout set to 10 seconds
timeout: 10 * 1000
timeout: 10 * 1000,
},
/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
}
use: { ...devices['Desktop Chrome'] },
},
/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
@@ -67,12 +67,14 @@ export default defineConfig({
],
/* Run your local dev server before starting the tests */
webServer: process.env.PLAYWRIGHT_SERVER_COMMAND ? {
cwd: '../../',
command: process.env.PLAYWRIGHT_SERVER_COMMAND,
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
} : undefined
webServer: process.env.PLAYWRIGHT_SERVER_COMMAND
? {
cwd: '../../',
command: process.env.PLAYWRIGHT_SERVER_COMMAND,
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
}
: undefined,
});

View File

@@ -30,8 +30,6 @@ test.describe('Auth flow', () => {
await auth.visitConfirmEmailLink(email);
await page.waitForURL('**/home');
expect(page.url()).toContain('http://localhost:3000/home');
});
test('will sign-in with the correct credentials', async ({ page }) => {

View File

@@ -46,7 +46,7 @@ export class Mailbox {
deleteAfter: boolean;
},
) {
const url = `http://localhost:54324/api/v1/mailbox/${mailbox}`;
const url = `http://127.0.0.1:54324/api/v1/mailbox/${mailbox}`;
const response = await fetch(url);

View File

@@ -32,7 +32,7 @@
},
"dependencies": {
"@edge-csrf/nextjs": "2.0.0",
"@hookform/resolvers": "^3.4.0",
"@hookform/resolvers": "^3.6.0",
"@kit/accounts": "workspace:^",
"@kit/admin": "workspace:^",
"@kit/auth": "workspace:^",
@@ -56,7 +56,7 @@
"@radix-ui/react-icons": "^1.3.0",
"@supabase/supabase-js": "^2.43.4",
"@tanstack/react-query": "5.40.1",
"@tanstack/react-query-next-experimental": "^5.40.0",
"@tanstack/react-query-next-experimental": "^5.40.1",
"@tanstack/react-table": "^8.17.3",
"date-fns": "^3.6.0",
"lucide-react": "^0.383.0",
@@ -85,9 +85,9 @@
"autoprefixer": "^10.4.19",
"dotenv-cli": "^7.4.2",
"eslint": "^8.57.0",
"prettier": "^3.3.0",
"prettier": "^3.3.1",
"supabase": "^1.172.2",
"tailwindcss": "3.4.3",
"tailwindcss": "3.4.4",
"typescript": "^5.4.5"
},
"eslintConfig": {