File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
// @ts -check
2
- const { test, expect } = require ( '@playwright/test' ) ;
2
+ import { test , expect } from '@playwright/test' ;
3
3
4
4
test . beforeEach ( async ( { page } ) => {
5
5
await page . goto ( 'https://demo.playwright.dev/todomvc' ) ;
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
- const { test, expect } = require ( '@playwright/test' ) ;
2
+ import { test , expect } from '@playwright/test' ;
3
3
4
4
test ( 'has title' , async ( { page } ) => {
5
5
await page . goto ( 'https://playwright.dev/' ) ;
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
- const { defineConfig, devices } = require ( '{{ctPackageName}}' ) ;
2
+ import { defineConfig , devices } from '{{ctPackageName}}' ;
3
3
4
4
/**
5
5
* @see https://playwright.dev/docs/test-configuration
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
- const { defineConfig, devices } = require ( '@playwright/test' ) ;
2
+ import { defineConfig , devices } from '@playwright/test' ;
3
3
4
4
/**
5
5
* Read environment variables from file.
6
6
* https://github.com/motdotla/dotenv
7
7
*/
8
- // require('dotenv').config({ path: path.resolve(__dirname, '.env') });
8
+ // import dotenv from 'dotenv';
9
+ // import path from 'path';
10
+ // dotenv.config({ path: path.resolve(__dirname, '.env') });
9
11
10
12
/**
11
13
* @see https://playwright.dev/docs/test-configuration
12
14
*/
13
- module . exports = defineConfig ( {
15
+ export default defineConfig ( {
14
16
testDir : './{{testDir}}' ,
15
17
/* Run tests in files in parallel */
16
18
fullyParallel : true ,
You can’t perform that action at this time.
0 commit comments