Skip to content

Commit 6aca5fd

Browse files
committed
fix: revert to JS
1 parent d0018b8 commit 6aca5fd

14 files changed

+17
-75
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The default helper is Playwright.
1919

2020
## Playwright
2121

22-
Use `codecept.conf.ts` to run tests with Playwright:
22+
Use `codecept.conf.js` to run tests with Playwright:
2323

2424
```
2525
npx codeceptjs run --steps

codecept.conf.ts renamed to codecept.conf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { setHeadlessWhen } = require('@codeceptjs/configure');
33
setHeadlessWhen(process.env.HEADLESS);
44

55
exports.config = {
6-
tests: './todomvc-tests/**/*_test.ts',
6+
tests: './todomvc-tests/**/*_test.js',
77
output: './output',
88
helpers: {
99
Playwright: {
@@ -15,19 +15,19 @@ exports.config = {
1515
REST: {},
1616

1717
CustomHelper: {
18-
require: './todomvc-tests/helpers/custom.helper.ts'
18+
require: './todomvc-tests/helpers/custom.helper.js'
1919
}
2020
},
2121

2222
gherkin: {
2323
features: './todomvc-tests/features/*.feature',
2424
steps: [
25-
'./todomvc-tests/step-definitions/create-todos.steps.ts'
25+
'./todomvc-tests/step-definitions/create-todos.steps.js'
2626
]
2727
},
2828

2929
include: {
30-
TodosPage: './todomvc-tests/pages/todos.page.ts'
30+
TodosPage: './todomvc-tests/pages/todos.page.js'
3131
},
3232
bootstrap: null,
3333
mocha: {},

codecept.puppeteer.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ exports.config = {
1717
REST: {},
1818

1919
CustomHelper: {
20-
require: './todomvc-tests/helpers/custom.helper.ts'
20+
require: './todomvc-tests/helpers/custom.helper.js'
2121
}
2222
},
2323

2424
gherkin: {
2525
features: './todomvc-tests/features/*.feature',
2626
steps: [
27-
'./todomvc-tests/step-definitions/create-todos.steps.ts'
27+
'./todomvc-tests/step-definitions/create-todos.steps.js'
2828
]
2929
},
3030

3131
include: {
32-
TodosPage: './todomvc-tests/pages/todos.page.ts'
32+
TodosPage: './todomvc-tests/pages/todos.page.js'
3333
},
3434
bootstrap: null,
3535
mocha: {},

codecept.testcafe.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ exports.config = {
1515
REST: {},
1616

1717
CustomHelper: {
18-
require: './todomvc-tests/helpers/custom.helper.ts'
18+
require: './todomvc-tests/helpers/custom.helper.js'
1919
}
2020
},
2121

2222
gherkin: {
2323
features: './todomvc-tests/features/*.feature',
2424
steps: [
25-
'./todomvc-tests/step-definitions/create-todos.steps.ts'
25+
'./todomvc-tests/step-definitions/create-todos.steps.js'
2626
]
2727
},
2828

2929
include: {
30-
TodosPage: './todomvc-tests/pages/todos.page.ts'
30+
TodosPage: './todomvc-tests/pages/todos.page.js'
3131
},
3232
bootstrap: null,
3333
mocha: {},

codecept.webdriver.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ exports.config = {
1414
REST: {},
1515

1616
CustomHelper: {
17-
require: './todomvc-tests/helpers/custom.helper.ts'
17+
require: './todomvc-tests/helpers/custom.helper.js'
1818
}
1919
},
2020

2121
gherkin: {
2222
features: './todomvc-tests/features/*.feature',
2323
steps: [
24-
'./todomvc-tests/step-definitions/create-todos.steps.ts'
24+
'./todomvc-tests/step-definitions/create-todos.steps.js'
2525
]
2626
},
2727

2828
include: {
29-
TodosPage: './todomvc-tests/pages/todos.page.ts'
29+
TodosPage: './todomvc-tests/pages/todos.page.js'
3030
},
3131

3232
plugins: {

steps.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types='codeceptjs' />
2-
type TodosPage = typeof import('./todomvc-tests/pages/todos.page');
3-
type CustomHelper = import('./todomvc-tests/helpers/custom.helper');
2+
type TodosPage = typeof import('./todomvc-tests/pages/todos.page.js');
3+
type CustomHelper = import('./todomvc-tests/helpers/custom.helper.js');
44

55
declare namespace CodeceptJS {
66
interface SupportObject { I: I, current: any, TodosPage: TodosPage }
File renamed without changes.

0 commit comments

Comments
 (0)