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

vite+vitest setup #108

Merged
merged 17 commits into from
Aug 9, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: playwright config in esm
3cp committed Jul 10, 2024
commit efe770cac8f873a95582b161315358906e9ac1c1
5 changes: 0 additions & 5 deletions app-min/e2e__if_playwright/app.spec.ext__if_not_plugin
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// @if typescript
import { test, expect } from '@playwright/test';
// @endif
// @if babel
const { test, expect } = require('@playwright/test');
// @endif

test.beforeEach(async ({ page }) => {
await page.goto('http://localhost:9000');
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
// @if typescript
import type { PlaywrightTestConfig } from '@playwright/test';
import { devices } from '@playwright/test';
// @endif
// @if babel
// @ts-check
const { devices } = require('@playwright/test');
// @endif
import { defineConfig, devices } from '@playwright/test';

/**
* Read environment variables from file.
@@ -16,7 +9,7 @@ const { devices } = require('@playwright/test');
/**
* See https://playwright.dev/docs/test-configuration.
*/
const config/* @if typescript */: PlaywrightTestConfig/* @endif */ = {
export default defineConfig({
testDir: './e2e',
/* Maximum time one test can run for. */
timeout: 30 * 1000,
@@ -108,11 +101,4 @@ const config/* @if typescript */: PlaywrightTestConfig/* @endif */ = {
command: 'npm start',
port: 9000,
},
};

// @if typescript
export default config;
// @endif
// @if babel
module.exports = config;
// @endif
});