mbolotov / intellij-playwright

1 stars 0 forks source link

Typescript support for playwright config #22

Open fmquaglia opened 1 year ago

fmquaglia commented 1 year ago

I'm running the demo SevlteKit app. When I try to run the test suite using the configuration I get this error:

my-app – test ts 2022-12-16 at 9 34 50 AM

contexts of ./playwright.congif.ts

import type { PlaywrightTestConfig } from '@playwright/test';

const config: PlaywrightTestConfig = {
    webServer: {
        command: 'npm run build && npm run preview',
        port: 4173
    },
    testDir: 'tests'
};

export default config;
mbolotov commented 1 year ago

hi Fabricio! Are you able to run this example from the command line? If yes, what's the difference in the command?